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
1383
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
1507
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
1635
posted 18 years ago by charlesroper
Prints content from an NSError or NSArray content from a managedObjectContext.
0
1655
posted 18 years ago by zingo
Was fiddling around at work one day thought this might be useful.
9
4944
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
1435
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
2934
posted 18 years ago by ches