Welcome To Snipplr


Everyone's Recent Snippets



1 ... 441 442 443 444 445 ... 553
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 1754 posted 16 years ago by inkdeep
0 1221 posted 16 years ago by vasilije
Use with (in custom.css) .sidebar_box {margin-bottom:2em; text-align:center;} You may have to adjust the width for your sidebars.
2 1596 posted 16 years ago by kristarella
This is the javascript code that enables you to create hover effects also in IE6. It's clean, it's light, it's super! :) Apply that code to your document (eg. in <head></head>) and in css add like this: ul li:hover, ul li.shover { your css st...
1 1589 posted 16 years ago by mihael
2 1463 posted 16 years ago by rwczippy
I've used Textmate since I started hand-coding websites. My boss loves BBEdit. This script allows me to do the thing I missed most from Textmate creating and wrapping tags around text. Enjoy!
2 1502 posted 16 years ago by conspirator
1 1046 posted 16 years ago by ping_ch
Add class \"clear\" to elements that contain floated elements and they will hold the height correctly
2 1026 posted 16 years ago by mihael
This example shows how to clean up git's reflogs entries in order save space (see http://www.newartisans.com/blog/2008/04/diving-into-git.html).
0 2500 posted 16 years ago by narkisr
The function content should work in any theme, it's just wrapped in a function wrapper for insertion into the Thesis theme.
2 1460 posted 16 years ago by kristarella
This CSS is nice to use with this function: .custom .avatar {float:left; border:3px solid #ddd; margin-right:1em;}
2 1320 posted 16 years ago by kristarella
You will probably have to hide the medium sized image.
2 1340 posted 16 years ago by kristarella
3 1293 posted 16 years ago by kristarella
This shows how to add content (in this case a linked image) to the end of a post using WordPress custom fields and the Thesis theme.
6 1732 posted 16 years ago by kristarella
0 1217 posted 16 years ago by counter202
Install an older version of a gem.
1 1290 posted 16 years ago by twofivethreetwo
0 921 posted 16 years ago by trey
So. You have some minutes and want a "human readable" version? Sure thing baby!
2 8300 posted 16 years ago by optimal
1 858 posted 16 years ago by pmd
0 1307 posted 16 years ago by Meestercor
You only use the filename as $value for get_mimetype().
1 1349 posted 16 years ago by fackz
1 ... 441 442 443 444 445 ... 553