Welcome To Snipplr


Everyone's Recent Snippets



1 ... 441 442 443 444 445 ... 553
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 1748 posted 17 years ago by conspirator
1 1270 posted 17 years ago by ping_ch
Add class \"clear\" to elements that contain floated elements and they will hold the height correctly
2 1214 posted 17 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 2744 posted 17 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 1737 posted 17 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 1544 posted 17 years ago by kristarella
You will probably have to hide the medium sized image.
2 1666 posted 17 years ago by kristarella
3 1521 posted 17 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 2024 posted 17 years ago by kristarella
0 1468 posted 17 years ago by counter202
Install an older version of a gem.
1 1505 posted 17 years ago by twofivethreetwo
0 1130 posted 17 years ago by trey
So. You have some minutes and want a "human readable" version? Sure thing baby!
2 8853 posted 17 years ago by optimal
1 1034 posted 17 years ago by pmd
0 1533 posted 17 years ago by Meestercor
You only use the filename as $value for get_mimetype().
1 1556 posted 17 years ago by fackz
Populate your states table with US States. Easy rake task for it.
2 1760 posted 17 years ago by twofivethreetwo
0 1346 posted 17 years ago by Meestercor
To be placed inside a loop or a query
1 1453 posted 17 years ago by davebowker
0 1782 posted 17 years ago by Wardy
Click on an input field with a prefilled value, if that value equals the default then select it, if not leave it as it was. Relies on jQuery.
2 2284 posted 17 years ago by 1man
Usage: formatDecimals(3.1415926, 3); returns: 3.141. Also adds zeros to end if needed.
0 1217 posted 17 years ago by Mijos
I was having the hardest time getting this to work. It's a collection of various items. For whatever reason, I needed to include the CASE statement due to NULL's coming back. If this helps you out... go for it.
0 1443 posted 17 years ago by gembry
1 ... 441 442 443 444 445 ... 553