Welcome To Snipplr


Everyone's Recent Ruby Snippets



1 ... 4 5 6 7 8 ... 12
I had a directory tree with around 4000 pdf files and I needed a page count - so I semi-rolled this. I swiped the counter code from the gem README: http://github.com/yob/pdf-reader/tree/master It could be more contained - as is I run it from irb:...
1 438 posted 12 years ago by inkdeep
3 349 posted 12 years ago by dbug13
1 251 posted 12 years ago by paramah
2 311 posted 12 years ago by paramah
2 247 posted 12 years ago by Krypt
Select text Right-click, select "Filter through command..."
1 280 posted 13 years ago by reedelrub
Rake task - Copies files from one directory to another in a batch of 50 files, giving 15 seconds break between each batch.
1 349 posted 13 years ago by cnicolaou
I needed a quick way to unescape a URL Encoded string. I found 2 chill ways
2 304 posted 13 years ago by chrisaiv
http://www.sitepoint.com/forums/showthread.php?t=552741
1 325 posted 13 years ago by chrisaiv
Example of how to use a cron like a daemon and avoid having the cron run two instances of the same script.
1 257 posted 13 years ago by jnunemaker
Simple Outlook automation, the idea is to use this in cygwin to send files without opening the outlook UI, to use it place the code under /bin folder and make it executable with chmod +x.
2 306 posted 13 years ago by narkisr
If you get "JPEG marker not found!" error when you try to open an image file you must read it in binary mode.
1 278 posted 13 years ago by PixelMin
2 300 posted 13 years ago by pmd
2 363 posted 13 years ago by pmaciver
1 309 posted 13 years ago by pmaciver
1 302 posted 13 years ago by pmaciver
1 230 posted 13 years ago by sunfjun
1 251 posted 13 years ago by marouanomezzine
英語のタイトルが適当な英訳なので、誰かOK/NGを教えてください。
1 355 posted 13 years ago by octech
1. Make sure the following environment variable is set: WinXP: HOME=C:\Documents and Settings\*username* Vista: HOME=C:\Users\*username* 2. Create an .irbrc file in %HOME%: $ cd %HOME% $ touch .irbrc If you don't have...
1 324 posted 13 years ago by charlesroper
Matches single line Javascript (and PHP, etc.) comments
1 307 posted 13 years ago by mikegreen
1 ... 4 5 6 7 8 ... 12