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 887 posted 16 years ago by ttscoff
simple way to join avi files on the command line (need to have mplayer installed)
0 1000 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 979 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 1367 posted 16 years ago by inkdeep
0 1013 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 1153 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 1164 posted 16 years ago by mihael
2 1012 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 1214 posted 16 years ago by conspirator
1 809 posted 16 years ago by ping_ch
Add class \"clear\" to elements that contain floated elements and they will hold the height correctly
2 849 posted 16 years ago by mihael
Writes 20 blocks of 1024 bytes to "filename" (equals a filesize of 20KB)
0 977 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 2276 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 1136 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 1068 posted 16 years ago by kristarella
You will probably have to hide the medium sized image.
2 1066 posted 16 years ago by kristarella
3 1025 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 1172 posted 16 years ago by kristarella
0 983 posted 16 years ago by counter202
Install an older version of a gem.
1 1060 posted 16 years ago by twofivethreetwo
1 ... 441 442 443 444 445 ... 554