Welcome To Snipplr


Everyone's Recent Snippets



1 ... 517 518 519 520 521 ... 552
Useful when your server runs out of disk space
1 1842 posted 19 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 2133 posted 19 years ago by charlesroper
simple example of startDrag and stopDrag using AS3
5 2892 posted 19 years ago by mswallace
1 1882 posted 19 years ago by nicolaspar
1 1666 posted 19 years ago by bodhi
to use apostrophs in the field values i.e. st john's
0 1642 posted 19 years ago by valcartei
great to validate and process a form in the same page
5 3527 posted 19 years ago by valcartei
Prints content from an NSError or NSArray content from a managedObjectContext.
0 2147 posted 19 years ago by zingo
Replace /dev/hda/ with the device path to your disk
0 1711 posted 19 years ago by hyperwhat
0 1812 posted 19 years ago by hyperwhat
Add this to httpd.conf/.htaccess
0 2245 posted 19 years ago by hyperwhat
Was fiddling around at work one day thought this might be useful.
9 5809 posted 19 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 1928 posted 19 years ago by 1man
override the boolean expression with your own conditions.
3 2104 posted 19 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 3565 posted 19 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 2093 posted 19 years ago by capitalist
Requires PerlMagick.
0 2309 posted 19 years ago by iblis
like PHP's 'jS'
0 3281 posted 19 years ago by ches
List the current version and installation date of every application on a OS X system, using of Spotlight.
1 1872 posted 19 years ago by zingo
2 2327 posted 19 years ago by iblis
displays sourcecode in a nice notebox on blog pages. uses with a class.
0 1761 posted 19 years ago by zingo
Using a gcc predefined macro, __DATE__, the code can know for itself when it was compiled, and build in an expiration date based on that value. For a internationalised version see: http://snipplr.com/view/7196/kill-app-after-expire-date-suicidal-c...
1 3198 posted 19 years ago by zingo
Dumps your snippets (and possibly skips your favourites [British spelling]) to standard output. Requires Frontier::RPC2.
0 2029 posted 19 years ago by iblis
Textpattern's default page title markup -- txp:page_title -- always places the site name in front of the individual page name. This is irritating, because I prefer to have the interior content title come before the site title itself -- it just makes...
3 2673 posted 19 years ago by jonhenshaw
Only works on valid XML (ie. XHTML, but not HTML). Grabs an alphabetized list of links from the given URL.
1 1901 posted 19 years ago by burke
Convert (comma separated) keywords to (space separated) tags in BibTeX files for use in social bibliography sites (bibsonomy.org, citeulike.org)
0 2232 posted 19 years ago by iblis
1 ... 517 518 519 520 521 ... 552