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 459 posted 12 years ago by dblandin
1 425 posted 12 years ago by CJness
0 374 posted 12 years ago by bedomax
calling serverside function asynchronously
1 465 posted 12 years ago by hairajeshk
This custom function is useful if you want to get the ID of a page.
1 511 posted 12 years ago by simonbouchard
Select the specified option for alle html selects as jQuery.
0 488 posted 12 years ago by pogosheep
JQ - detect users browser language using http headers via ajax jsonp ajaxhttpheaders
1 862 posted 12 years ago by brandonjp
Simple function to return a decimal value between the minValue and the maxValue.
0 1098 posted 12 years ago by Jamie
Simple function to return a value between the minValue and the maxValue.
0 477 posted 12 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 545 posted 12 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 655 posted 12 years ago by alexandrepayet
Creates a tiny url for posting on twitter etc.
1 1035 posted 12 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 834 posted 13 years ago by drwitt
Using contrib's trace ns in order to debug functions in the REPL
0 557 posted 13 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 538 posted 13 years ago by aristoworks
Place in your functions.php file and call it in your theme like this: <?php>
1 694 posted 13 years ago by afj176
Convert string to underscore, for SE safe URLs etc.
1 362 posted 13 years ago by jspicher