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
1164
posted 18 years ago by hyperwhat
Taken from a lynda.com tutorial on learning actionscript. Lots of comments for the moment.
0
1339
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
1444
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
1586
posted 18 years ago by charlesroper
Prints content from an NSError or NSArray content from a managedObjectContext.
0
1612
posted 18 years ago by zingo
Was fiddling around at work one day thought this might be useful.
9
4869
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
1394
posted 18 years ago by 1man