Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
this will chmod the current directory, and all sub directories and files.
0
2492
posted 16 years ago by beneberle
Adds two "sidebars" to the header. You can drag and drop widgets into them just like any other sidebar from your WP dashboard. You can change the Hook to move the "sidebars" somewhere else on the page. For example, change 'thesis_hook_header' to '...
4
3286
posted 16 years ago by fouroclockproject
Dumps a space separated list of enabled modules to a text file mods_enabled.txt
1
2028
posted 16 years ago by zachharkey
Easily target elements which have certain attributes using jQuery
1
1149
posted 16 years ago by davebowker
Very easy to use JS Calendar Control with so many customization options.
0
1552
posted 16 years ago by design2develop
Let's say, perhaps, that you are already forwarding your web traffic through an SSH/SOCKS tunnel at work (for privacy reasons that have absolutely no relation to accessing blocked sites LOL!) and you would like to use that same tunnel on your iPhone/...
1
8736
posted 16 years ago by shaunchapman
I made this class because is was fed up with all those strings with escaped quotes with when building html into an output-string. You could also build a php-version of it.
0
1345
posted 16 years ago by leonardreinders
In der Datei “t3lib/class.t3lib_div.php†folgende Zeile ersetzen:
0
1615
posted 16 years ago by xtine777
Improved version of http://snipplr.com/view/15246/color-coded-svn-status/
0
1486
posted 16 years ago by phalkunz
Completely changed original function, which stopped working around WP2.8.
1
1430
posted 16 years ago by kristarella
Great to see exactly the position of all the blocs in a page.
Thanks to Chris Coyier for this tip.
0
1343
posted 16 years ago by HubertGaulin
There's another snippet on here that always comes up on google for finding the relative path to the root, but it doesn't work very well. This version will work from the root, from any subdirectory, and with malformed path names such as www.example.co...
3
2320
posted 16 years ago by blackhole12
A simple JS script to validate a date. It returns a boolean type (true | false)
0
1732
posted 16 years ago by mardix
When you can't use firebug to discover cross browser compatibility problems (i.e. internet explorer 6) then what's the fastest way to see the padding and margins?
A quick solution is adding a css debug class to your container. Feel free to change...
0
3132
posted 16 years ago by chrisjlee
Credits to Julie. Here is a regex if you want this criteria:
* Passwords will contain at least (1) upper case letter
* Passwords will contain at least (1) lower case letter
* Passwords will contain at least (1) number or special character...
2
1512
posted 16 years ago by axelitus
This little bit of code is a calculator of the "golden mean" of a given length of time. For example: given a length of 1 minute and 0 seconds, the answer given will be 0:00:37. See U2's "With or Without You", the Greek Parthenon, the human body, etc....
1
2941
posted 16 years ago by rossuber