Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
From: Roberto Ierusalimschy
Parses the "main" part of an XML string. It does not handle meta-data. Outputs to a table.
Example:
myVar = collect( myXml )
-- myVar would be a table/array of myXml
2
1589
posted 15 years ago by traeregan
* checkout : June 08, 2009
* commit : [34864f01741b1b2bb74072ba404e8b4436c18fe6](http://github.com/AndyA/htop-osx/commit/34864f01741b1b2bb74072ba404e8b4436c18fe6)
0
1016
posted 15 years ago by kmartiin
This requires the user to enter his/her google gmail information but still useful if you can't use the normal Email/Gmail apps via their intents.
1
4916
posted 15 years ago by abwaters
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
1231
posted 15 years ago by 1man
this will chmod the current directory, and all sub directories and files.
0
1806
posted 15 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
2328
posted 15 years ago by fouroclockproject
Dumps a space separated list of enabled modules to a text file mods_enabled.txt
1
1149
posted 15 years ago by zachharkey
Easily target elements which have certain attributes using jQuery
1
698
posted 15 years ago by davebowker
Very easy to use JS Calendar Control with so many customization options.
0
879
posted 15 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
7360
posted 15 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
850
posted 15 years ago by leonardreinders
In der Datei “t3lib/class.t3lib_div.php†folgende Zeile ersetzen:
0
1058
posted 15 years ago by xtine777