Welcome To Snipplr


Everyone's Recent Snippets Tagged function



<p>This function returns a random number within a range.</p><p>For example:</p><p>// assigns low and high values for range</p><p><code>int rangeLow = 34, rangeHigh = 78;</code></p><p>// computes a random number between 34 and 78</p><p><code>myRandomN...
0 960 posted 14 years ago by dblandin
1 969 posted 14 years ago by CJness
0 858 posted 14 years ago by bedomax
calling serverside function asynchronously
1 997 posted 14 years ago by hairajeshk
This custom function is useful if you want to get the ID of a page.
1 1036 posted 14 years ago by simonbouchard
Select the specified option for alle html selects as jQuery.
0 1005 posted 14 years ago by pogosheep
JQ - detect users browser language using http headers via ajax jsonp ajaxhttpheaders
1 3439 posted 14 years ago by brandonjp
Simple function to return a decimal value between the minValue and the maxValue.
0 1995 posted 14 years ago by Jamie
Simple function to return a value between the minValue and the maxValue.
0 1010 posted 14 years ago by Jamie
You can use this script in your projects when you need an image upload function. It checks file type, file size and error report. I also want you to check [giochi di spongebob](http://www.giochidispongebob.net) and [gratis mahjong](http://www.gratism...
1 1051 posted 15 years ago by jackoder
ici on souhaite qu'une info s'affiche aux survole d'un <li> mais seulement une fois qu'un délai de 650 millisecondes est passé. Cependant si l'user ne survole plus la zone avant la fin du délai, il faut interrompre l'affichage de l'info. Voilà un...
0 1184 posted 15 years ago by alexandrepayet
Creates a tiny url for posting on twitter etc.
1 1691 posted 15 years ago by vagrantradio
Many scripts rely on `$_SERVER[SCRIPT_URL]` which is sometimes missing. This function detects it from other server variables and fixes the missing field.
1 1827 posted 15 years ago by drwitt
Using contrib's trace ns in order to debug functions in the REPL
0 1160 posted 15 years ago by narkisr
This is a simple function that will return an array of all the dates corresponding to the day 'Monday' for a given year. It's pretty simple and may not be the cleanest way but it works for my purpose.
0 1218 posted 15 years ago by aristoworks
Place in your functions.php file and call it in your theme like this: <?php>
1 1387 posted 15 years ago by afj176
Convert string to underscore, for SE safe URLs etc.
1 865 posted 15 years ago by jspicher