Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Gets the absolute path of the script itself even when it's executing, not just a simple "pwd".
1
2419
posted 17 years ago by loungerdork
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
4748
posted 17 years ago by traeregan
* checkout : June 08, 2009
* commit : [34864f01741b1b2bb74072ba404e8b4436c18fe6](http://github.com/AndyA/htop-osx/commit/34864f01741b1b2bb74072ba404e8b4436c18fe6)
0
2114
posted 17 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
8099
posted 17 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
2306
posted 17 years ago by 1man
this will chmod the current directory, and all sub directories and files.
0
2966
posted 17 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
3890
posted 17 years ago by fouroclockproject
Dumps a space separated list of enabled modules to a text file mods_enabled.txt
1
2627
posted 17 years ago by zachharkey
Easily target elements which have certain attributes using jQuery
1
1595
posted 17 years ago by davebowker
Very easy to use JS Calendar Control with so many customization options.
0
2031
posted 17 years ago by design2develop