Welcome To Snipplr


Everyone's Recent Snippets



1 ... 340 341 342 343 344 ... 553
1 1241 posted 15 years ago by berkes
This is the code I use when I want to test a helper. It uses Factory Girl and Shoulda, but they're not needed to make it work.
0 1416 posted 15 years ago by nflamel
works with fugue icons, but can be custumized
0 1079 posted 15 years ago by renaars
1 1233 posted 15 years ago by jmacgr
Quick basic way to serve a string or a file through PHP
0 1712 posted 15 years ago by cburyta
Easily grabs email addresses from a bulk text (CSV and/or some other email address-filled list/db). Example #2 takes the input (bulk text) from textarea #input and puts the clean emails in the textarea #extractedemails.
1 3711 posted 15 years ago by world_eggplant
0 1218 posted 15 years ago by Zwendel
Found on [Corey Goldberg's blog](http://coreygoldberg.blogspot.com/2010/01/python-command-line-progress-bar-with.html). Usage: from progress_bar import ProgressBar p = ProgressBar(60) p.update_time(15) print p p.fill_char =...
0 794 posted 15 years ago by ctmiller
Originally found on [Corey Goldberg's blog](http://coreygoldberg.blogspot.com/2010/01/python-command-line-progress-bar-with.html)
0 976 posted 15 years ago by codeshaman
3 1288 posted 15 years ago by davebowker
1 1463 posted 15 years ago by giak
<p>This zips all files and directories</p> <p>-r:Includes all files and directories -> Files</p> <p>filename.zip:The zip file you want to create</p> <p>foldername:The folder you are targetting or use * if your currently in the folder</p>
0 5119 posted 15 years ago by kevinbanet
2 3352 posted 15 years ago by jmiller
Easy way to add belongs_to association to nested forms in Rails
0 1359 posted 15 years ago by viatropos
0 1184 posted 15 years ago by Michael01
Permanente / Temporäre Weiterleitung per htaccess
0 1124 posted 15 years ago by Michael01
PHP provides many date manipulation devices and an entire suite of date functionality with the datetime class. However, this does not address date validation, that is, what format a date is received in. The PHP strtotime() function will accept many f...
1 1606 posted 15 years ago by kanampo
This will need to be either embeded or included and you can then just use this as such myNewString = myStringVariable.nl2br();
0 1254 posted 15 years ago by boondoklife
Snippet out of my C# KNN implementation. Uses leave-one-out cross validation tuning with our given K to find our nearest neighbors.
0 1326 posted 15 years ago by ahawker
0 3276 posted 15 years ago by jrobinsonc
Handy little snippet i found in 'jquery enlightenment' for caching certain selected files. Could be useful for larger files later on in a site.
1 1743 posted 15 years ago by 1man
If you have your wordpress subpages organized by parent pages... and you dont want the parent pages "clickable" this will fix you right up...
0 1110 posted 15 years ago by mdesilets
1 ... 340 341 342 343 344 ... 553