Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Use this command in Textmate to paste some text without any surrounding whitespace.
1
1098
posted 18 years ago by hyperwhat
Taken from a lynda.com tutorial on learning actionscript. Lots of comments for the moment.
0
1284
posted 18 years ago by 1man
Convert 12hs format to 24hs format. In example: 10:00:00 a.m. return timestamp for 22:00. Or use: strtotime('1970-01-01 '.$hora);
1
1379
posted 18 years ago by nicolaspar
The escape_javascript funtion is taken from Rails (http://rails.rubyonrails.com/classes/ActionView/Helpers/JavaScriptHelper.html#M000633). Most of the work on this was done by pnomolos and n00ge on the E Text Editor forums.
1
1514
posted 18 years ago by charlesroper
Prints content from an NSError or NSArray content from a managedObjectContext.
0
1530
posted 18 years ago by zingo
Was fiddling around at work one day thought this might be useful.
9
4742
posted 18 years ago by djdykes
This will run the message function until countInterval equals 10, then it will stop. Could be used in various animations.
0
1344
posted 18 years ago by 1man