Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- 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
1457
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
808
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
1186
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
1150
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
1496
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
932
posted 15 years ago by tennison
Directory listing on a web server at http://yourhost:8000/
1
1006
posted 15 years ago by blackthorne
As of revision 11031 of the Flex 4 SDK compression is supported inline with the embed metadata tag.
0
763
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
1324
posted 15 years ago by berkes