Welcome To Snipplr


Everyone's Recent Snippets



1 ... 441 442 443 444 445 ... 554
I just figured out that TextExpander can execute AppleScripts. This is an experiment.
1 815 posted 16 years ago by ttscoff
simple way to join avi files on the command line (need to have mplayer installed)
0 931 posted 16 years ago by inkdeep
Clear files in /tmp directory that are older than three days - terminal/cron this is a very simple example - could also remove by last access time, etc.
0 924 posted 16 years ago by inkdeep
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 1268 posted 16 years ago by inkdeep
Use with (in custom.css) .sidebar_box {margin-bottom:2em; text-align:center;} You may have to adjust the width for your sidebars.
2 1084 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 1087 posted 16 years ago by mihael
2 953 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 1130 posted 16 years ago by conspirator
1 749 posted 16 years ago by ping_ch
Add class \"clear\" to elements that contain floated elements and they will hold the height correctly
2 810 posted 16 years ago by mihael
Writes 20 blocks of 1024 bytes to "filename" (equals a filesize of 20KB)
0 895 posted 16 years ago by dertimbo
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 2193 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 1071 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 975 posted 16 years ago by kristarella
You will probably have to hide the medium sized image.
2 995 posted 16 years ago by kristarella
3 947 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 1089 posted 16 years ago by kristarella
0 918 posted 16 years ago by counter202
Install an older version of a gem.
1 989 posted 16 years ago by twofivethreetwo
1 ... 441 442 443 444 445 ... 554