Welcome To Snipplr


Everyone's Recent Snippets



1 ... 231 232 233 234 235 ... 554
it parses given string and returns 1st number it encounters ( it will replace comas with dots so floats formatted as 12,345 could be 12.345 ( some countries use that ) ) then u can parse returned value as a number / float / int - do what You need...
0 1146 posted 14 years ago by stryju
The resulting tree is represented through a dict where each father gets a key (with all the children as args)
0 1257 posted 14 years ago by magicrebirth
0 1154 posted 14 years ago by simondiercks
2 1424 posted 14 years ago by simondiercks
0 810 posted 14 years ago by klw
glider levin method
1 848 posted 14 years ago by interfacecreation
Modifies the file name in case an existing filename is in the specified path. (Ex: myfile.dat myfile(1).dat myfile(2).dat myfile(3).dat)
0 1652 posted 14 years ago by Sazabi02
Short and sweet, add the following two lines where you want to trigger a javascript function. Just change the javascript denoted in the code by "javascriptFunction()" with whatever you want to call. Also jsut in case make sure you have the allowScrip...
1 1101 posted 14 years ago by StevenW721
0 884 posted 14 years ago by dkevey
Util para lanzar un procedimiento o una función al elegir una fecha en un ajax calendar
0 1017 posted 14 years ago by derebus
Write function "get_min_range" which returns the subscript of the smallest value in a portion of an array containing type int values. It has three arguments: an array, the first subscript in the subarray, and the last subscript in the subarray.
0 686 posted 14 years ago by itsaboutcode
0 1177 posted 14 years ago by stephcode
This is an extension method for splitting strings with a regular expression.
0 1080 posted 14 years ago by gyurisc
nice post, would do it a bit differently but using it currently as-is.
0 1049 posted 14 years ago by dmistriotis
isNumber string extension method for testing strings.
2 1631 posted 14 years ago by gyurisc
useful if you only want digits as input
0 829 posted 14 years ago by webstylr
Easy "back to top" scroll link
1 1153 posted 14 years ago by benwellby
0 796 posted 14 years ago by laurentzziu
0 865 posted 14 years ago by telltec
Uses LDAP to find EMail address by using the sAMAccountName. Add System.DirectoryServices to references.
0 1415 posted 14 years ago by poxet
Uses LDAP to find sAMAccountName by using the Email address. Add System.DirectoryServices to references.
0 1747 posted 14 years ago by poxet
1 ... 231 232 233 234 235 ... 554