Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
substitui <ENTER> em quebra de linha.
Break the lines form data, replacing <ENTER> key
0
1122
posted 17 years ago by LondonWeb
Takes a delimited string and a the delimiter, and returns a dynamic arrary
0
1059
posted 17 years ago by ScryptKeeper
Where bad_table is the name of the table containing duplicate rows.
2
1137
posted 17 years ago by jdbartlett
This takes whatever object you want (called YOUR_OBJECT in the source) and traces out each child of that object. Pretty useful for debugging an add/removeChild issue.
1
2642
posted 17 years ago by benwasilewski
By default, the 'Administrator' user in XP won't show if any other users are defined. This is moronic. This one registry value will make that user show up regardless.
3
1594
posted 17 years ago by TALlama
NOT MY CODE. I was looking for a good code that would validate the date in JavaScript and I found this function. I thought it was worth keeping so I decided to post it on here as opposed to clutter my bookmarks with one more link.
Once again I take...
0
1368
posted 17 years ago by ckester
inspired by http://snipplr.com/view/6594/post-to-twitter-from-the-shell/ . I just rewrote it in Python because I didn't want to install a Ruby interpreter :)
use `chmod +x tweet.py` to run it as `./tweet.py` instead of `python tweet.py`
1
1556
posted 17 years ago by nate_smith
If you have a title, for something like a blog or product, and want to make an seo-friendly name to call it, here is a function.
SAMPLE INPUT:
$title = "This foo's bar is rockin' cool!";
echo make_seo_name($title);
//RETURNS:
//this-foos-bar-i...
10
3575
posted 17 years ago by jdstraughan