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 1297 posted 15 years ago by dblandin
1 1375 posted 15 years ago by CJness
0 1168 posted 15 years ago by bedomax
calling serverside function asynchronously
1 1326 posted 15 years ago by hairajeshk
This custom function is useful if you want to get the ID of a page.
1 1434 posted 15 years ago by simonbouchard
Select the specified option for alle html selects as jQuery.
0 1350 posted 15 years ago by pogosheep
JQ - detect users browser language using http headers via ajax jsonp ajaxhttpheaders
1 4049 posted 15 years ago by brandonjp
Simple function to return a decimal value between the minValue and the maxValue.
0 2433 posted 15 years ago by Jamie
Simple function to return a value between the minValue and the maxValue.
0 1397 posted 15 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 1392 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 1582 posted 15 years ago by alexandrepayet
Creates a tiny url for posting on twitter etc.
1 2109 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 2326 posted 15 years ago by drwitt
Using contrib's trace ns in order to debug functions in the REPL
0 3403 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 1715 posted 16 years ago by aristoworks
Place in your functions.php file and call it in your theme like this: <?php>
1 2796 posted 16 years ago by afj176
Convert string to underscore, for SE safe URLs etc.
1 1161 posted 16 years ago by jspicher