 |
Title |
User |
Language |
Tags |
Description |
Date |
|
|
|
Check for non-XHTML tags
|
Shane Hudson
|
Regular Expressions |
Check
non-XHTML
tags
|
I created this some time last year for a large file I was editing, basically it just looks for non-xhtml. Of course this could be easily converted for other tags, or even could be used to create one that searches for them all.
NOTE: This was originally made for the img tag (which should be self-closing) and has since been converted to generic (to be more regex). So I would refrain from using as a replace all, because there are some tags which are not supposed to be self-closing. |
June 13, 2011 |
|
Convert string to all upper/lower case in haskell
|
ishkabible
|
Other Languages |
Convert
string
upper/lower
case
haskell
|
you pass a string to either strToLower or strToUpper to get the all lower case or all uppercase string. |
June 9, 2011 |
|
Find the sum of all the integers in a number - Common Lisp
|
I X Code X 1
|
Common Lisp |
Find
integers
number
Common
Lisp
|
In this snippet, it may not be the most direct path to achieve the desired goal, but the point is to show the different kind of conversions that can be done in common lisp: Integer-string, String-characters, Characters-string, String-integer. |
June 7, 2011 |
|
Common Lisp - Find Average
|
I X Code X 1
|
Find Average |
Common
Lisp
Find
Average
|
In Common Lisp it can sometimes hard to give the program the parameters you really want due to it being so geared towards lists. Unless of course you're into that kind of stuff. This snippet will look at the &rest parameter. You'll find it can be quite useful. |
June 7, 2011 |
|
Pythagorean Theorem - Common Lisp
|
I X Code X 1
|
Common Lisp |
Pythagorean
Theorem
Common
Lisp
|
This program demonstrates the Pythagorean Theorem. In other implementations one might have to define separate functions to account for which variable (A, B or C) is the unknown. Using CL's built in cond function and given the mathematical certainty that one variable must be unknown, we are able to simply implement this by stating that if the variable is given as 0 it is the unknown. Note: this also demonstrates a purely functional approach at this. I do not declare any outside variables, given the same arguments the same result will always be shown, and it simply "evaluates to a result". |
June 6, 2011 |
|
Recursive FindControl using Predicate
|
Nakor
|
ASP.NET |
Recursive
FindControl
using
Predicate
|
Recursively locate a child control based on the predicate statement parameter. Returns the actual instance of the control rather than a generic control that needs to be cast. |
June 4, 2011 |
|
Best way to check null query string
|
Pragnesh Patel
|
ASP.NET |
Best
check
null
query
string
|
Best way to check null query string |
May 19, 2011 |
|
Disable button to prevent double click
|
marinus
|
ASP.NET |
Disable
button
prevent
double
click
|
This code snippet is made to stop users double clicking a button so it can successfully run the server side code even when the button is immediately disabled in JavaScript code. |
May 18, 2011 |
|
Linking to iFrames
|
NeverPool
|
HTML/CSS |
Linking
iFrames
|
Shows how to change your iFrame via a clicked link. |
May 15, 2011 |
|
Test snipped one here ...
|
S D
|
VBA |
Test
snipped
here
|
Test whatever is here |
May 13, 2011 |
|
String Input for your Assembly Programs
|
karagulamos
|
Assembly |
String
Input
your
Assembly
Programs
|
A short program written for 8086 that shows how to get string input using assembly. The program itself is short and easy to understand except for the comments which can be taken out for a better view of the code. I hope someone appreciates this. Thanks. |
May 8, 2011 |
|
Rotating a range of digits
|
karagulamos
|
Assembly |
Rotating
range
digits
|
Rotates a predefined range of digits that forms a simple sequence / pattern. The program runs for a predefined number of times and displays the result. |
May 8, 2011 |
|
Batch Launcher
|
NeverPool
|
Other Languages |
Batch
Launcher
|
Launch your websites through CMD. |
May 4, 2011 |
|
Radix sort in D
|
ishkabible
|
Other Languages |
Radix
sort
|
a fast implementation of a Radix sort for unsigned integers implemented in D. |
April 20, 2011 |
|
RU-ru DateTime Format
|
Ilya S
|
XAML |
RU-ru
DateTime
Format
|
RU-ru DateTime Format |
April 14, 2011 |