Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 517 518 519 520 521 ... 553
get the image size and reduces it dynamically
3 1973 posted 18 years ago by valcartei
A simple way to build iPhone specific interface with Rails
2 1460 posted 18 years ago by ctran
Taken from a lynda.com tutorial on learning actionscript. Lots of comments for the moment.
0 1438 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 1587 posted 18 years ago by nicolaspar
0 1522 posted 18 years ago by eethann
0 1358 posted 18 years ago by wintondeshong
Useful when your server runs out of disk space
1 1432 posted 18 years ago by benpjohnson
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 1701 posted 18 years ago by charlesroper
simple example of startDrag and stopDrag using AS3
5 2378 posted 18 years ago by mswallace
1 1412 posted 18 years ago by nicolaspar
1 1275 posted 18 years ago by bodhi
to use apostrophs in the field values i.e. st john's
0 1272 posted 18 years ago by valcartei
great to validate and process a form in the same page
5 3017 posted 18 years ago by valcartei
Prints content from an NSError or NSArray content from a managedObjectContext.
0 1707 posted 18 years ago by zingo
Replace /dev/hda/ with the device path to your disk
0 1350 posted 18 years ago by hyperwhat
0 1384 posted 18 years ago by hyperwhat
Add this to httpd.conf/.htaccess
0 1803 posted 18 years ago by hyperwhat
Was fiddling around at work one day thought this might be useful.
9 5069 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 1488 posted 18 years ago by 1man
override the boolean expression with your own conditions.
3 1640 posted 18 years ago by capitalist
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 3025 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 1642 posted 18 years ago by capitalist
1 ... 517 518 519 520 521 ... 553