Welcome To Snipplr


Everyone's Recent Snippets



1 ... 518 519 520 521 522 ... 553
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 2870 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 1547 posted 18 years ago by capitalist
Requires PerlMagick.
0 1563 posted 18 years ago by iblis
like PHP's 'jS'
0 2626 posted 18 years ago by ches
List the current version and installation date of every application on a OS X system, using of Spotlight.
1 1315 posted 18 years ago by zingo
2 1674 posted 18 years ago by iblis
displays sourcecode in a nice notebox on blog pages. uses with a class.
0 1294 posted 18 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 2265 posted 18 years ago by zingo
Dumps your snippets (and possibly skips your favourites [British spelling]) to standard output. Requires Frontier::RPC2.
0 1469 posted 18 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 1940 posted 18 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 1407 posted 18 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 1674 posted 18 years ago by iblis
Retrieves gif page images from RIFIAS on-line archive and combines them into a single pdf file
0 1216 posted 18 years ago by iblis
4 1871 posted 18 years ago by andrewbowley
Put classes around your bodyy, to allow different colors for seperate pages and areas on your site. IT will simply add a css-safe version of the first argument in an url. Say the url is /about_us/our_company the class will be body.about-us Require...
2 1604 posted 18 years ago by berkes
This will open up the 443 port in your firewall to TCP connections. Run as root.
0 1129 posted 18 years ago by micmath
2 1865 posted 18 years ago by hyperwhat
1 921 posted 18 years ago by z0rg
3 1770 posted 18 years ago by m10
A shell script to install a Rails production stack on Ubuntu
0 1189 posted 18 years ago by ctran
This function (intended to be an application or view helper) creates a pager bar useful for navigating many pages. It shows the first, last, current, nearby, and halfway-to-end pages. It looks like this (where the current page is 11): < 1 ... 5 .....
1 1125 posted 18 years ago by Agent
This is an extension to Ruby's String class. Just put this code in a file and include it. This basically takes a string and adds literals and padding to it. For example, you can format a phone number with optional area code like this: "5445556...
1 1687 posted 18 years ago by Agent
0 1716 posted 18 years ago by micmath
0 1566 posted 18 years ago by micmath
From http://www.novell.com/coolsolutions/feature/11251.html
1 1397 posted 18 years ago by micmath
based loosely on Eric Meyers sheet but then tweaked to my own.
2 1294 posted 18 years ago by smynett
1 ... 518 519 520 521 522 ... 553