Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 340 341 342 343 344 ... 552
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 1297 posted 16 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 1561 posted 16 years ago by codeshaman
3 2047 posted 16 years ago by davebowker
1 2184 posted 16 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 6557 posted 16 years ago by kevinbanet
2 4197 posted 16 years ago by jmiller
Easy way to add belongs_to association to nested forms in Rails
0 2192 posted 16 years ago by viatropos
0 1865 posted 16 years ago by Michael01
Permanente / Temporäre Weiterleitung per htaccess
0 1809 posted 16 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 2288 posted 16 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 1996 posted 16 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 1929 posted 16 years ago by ahawker
0 4072 posted 16 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 2637 posted 16 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 1796 posted 16 years ago by mdesilets
Shows the sub pages of a parent page, and also the parent page as a link.
1 2086 posted 16 years ago by davebowker
If you wish to set an ASyncPostBackTrigger in ScriptManager for AJAX.NET, using ASyncPostBackTrigger="xxx" causes Firefox, Chrome, Safari, etc. to timeout on partial page postback, using this javascript to set the ASyncPostBackTrigger (instead of the...
0 2334 posted 16 years ago by cardiffblogger
If you want to force someone to download a file instead of opening it in their browser, use this code.
1 5183 posted 16 years ago by jrobinsonc
Hacer una redireccion permanente
0 1587 posted 16 years ago by jrobinsonc
0 1847 posted 16 years ago by jrobinsonc
Esto setea todas las opciones menos *Indexes* que es la que permite que los ficheros y directorios sean mostrados cuando no hay un *index.html* en un directorio.
0 1620 posted 16 years ago by jrobinsonc
Simple plugin to demonstrate how the 'this' keyword is used. Plugin also allows chaining via the 'return'
0 2493 posted 16 years ago by 1man
1 ... 340 341 342 343 344 ... 552