Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Taken from a lynda.com tutorial on learning actionscript. Lots of comments for the moment.
0
1432
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
1582
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
1697
posted 18 years ago by charlesroper
Prints content from an NSError or NSArray content from a managedObjectContext.
0
1700
posted 18 years ago by zingo
Was fiddling around at work one day thought this might be useful.
9
5047
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
1482
posted 18 years ago by 1man
model/form.py is a good place to put schemata in a pylons app: easy to build with inheritance and accessible to controllers via model.form.EmailForm, etc. See the link for further info on the _extra_fields options -- this one is intended for just two...
1
3008
posted 18 years ago by ches
Run this in a terminal on mac to set your screensaver as your background. (hint: use rss visualizer for a neat effect)
Ctrl+C to stop.
1
1634
posted 18 years ago by capitalist