Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Put this line in your .bashrc.
If the user has a directory named 'bin' then that will be added to the PATH.
All scripts in that path (wich are executable) will be available as commands to that user.
0
1367
posted 15 years ago by berkes
ElementTree is provided as part of the standard Python libs. ElementTree is pure python, and cElementTree is the faster C implementation:
Here's an example usage, where I'm consuming xml from a RESTful web service:
0
764
posted 15 years ago by magicrebirth
Just run the following query on your WordPress database, and all revisions (As well as meta associated with it) will be deleted from your database.
2
1119
posted 15 years ago by jessibird
This template code will work only in the WordPress Loop to include a map if the Geo Mashup plugin is active and the current post has a location.
0
1086
posted 15 years ago by cyberhobo
This small function receive a text as input and returns an html text with links if the source text contains urls (http://www… but also ftp://… and every other protocol), emails, twitter’s usernames (with @ at the beginning) and also twitter tag...
0
1425
posted 15 years ago by ginoplusio
original source - http://www.filamentgroup.com/lab/update_styling_the_button_element_with_css_sliding_doors_now_with_image_spr/
Overides default styling
0
882
posted 15 years ago by tennison
As of revision 11031 of the Flex 4 SDK compression is supported inline with the embed metadata tag.
0
729
posted 15 years ago by aphex
Drupal allows hook_update_N to run any sort of code. Most of the time, however, people only use this to alter the database scheme.
But you can use it for much more. Like setting variables, creating nodes, importing views and so on.
This code show...
2
1260
posted 15 years ago by berkes