Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Read a page's GET URL variables and return them as an "associative array."
Calling the function while at `example.html?foo=asdf&bar=jkls` sets `map['foo']='asdf'` and `map['bar']='jkls'`
17
6900
posted 15 years ago by the_coder
This snippet is just an upgrade to the "http://snipplr.com/view/7396/php-file-extension-case-changer/" code. This particular code works on image files... although you can just change this line [if (preg_match("/(jpg|gif|png|bmp)/",$ext)) ] to target...
0
1599
posted 15 years ago by el-artiste
Javascript time execution utility:
Use:
var otd = new timeDebugger();
otd.start();
alert(otd.end());
1
1081
posted 15 years ago by marcocs
Perl hash sets are hashes used to represent sets. Their keys are the set elements, and the corresponding values are just 1. For keys that are not set elements, the hash will return undef, equivalent to false.
Adding a whole array to a hash set i...
0
1193
posted 15 years ago by deepsoul
see http://www.undolog.com/2009/08/21/impedire-la-propagazione-degli-eventi-con-jquery/ for detail
0
1140
posted 15 years ago by gfazioli
This version add a special class to avoid external link icon in specify link
1
1116
posted 15 years ago by gfazioli
This is an incomplete color spectrum because cos waves will not reach all the colors. For a proper graph refer to this wiki page http://en.wikipedia.org/wiki/HSL_color_space
1
863
posted 15 years ago by forchid