Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A way to time how long it takes to get through a certain block of code. Good way to measure performance on the page.
You could also use the built in logging functions in firebug. Not sure how they would tally up in a test.
1
1660
posted 16 years ago by 1man
this will chmod the current directory, and all sub directories and files.
0
2357
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
3139
posted 16 years ago by fouroclockproject
Dumps a space separated list of enabled modules to a text file mods_enabled.txt
1
1883
posted 16 years ago by zachharkey
Easily target elements which have certain attributes using jQuery
1
1046
posted 16 years ago by davebowker
Very easy to use JS Calendar Control with so many customization options.
0
1435
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
8445
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
1235
posted 16 years ago by leonardreinders
In der Datei “t3lib/class.t3lib_div.php†folgende Zeile ersetzen:
0
1482
posted 16 years ago by xtine777
Improved version of http://snipplr.com/view/15246/color-coded-svn-status/
0
1374
posted 16 years ago by phalkunz
Completely changed original function, which stopped working around WP2.8.
1
1336
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
1240
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
2150
posted 16 years ago by blackhole12
A simple JS script to validate a date. It returns a boolean type (true | false)
0
1611
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
2966
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
1400
posted 16 years ago by axelitus