Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
In v1.6, the Thesis Theme has a bug which removes a necessary space in the HTML body tag if you add a filter targeting the thesis_body_classes hook. To get the native WP body_class function to work, use this code:
2
1353
posted 15 years ago by joelhaus
A short photo id is a base58 conversion of the photo id. Base58 is like base62 [0-9a-zA-Z] with some characters removed to make it less confusing when printed. (namely 0, O, I, and l).
So that leaves an alphabet of: 123456789abcdefghijkmnopqrstuvw...
0
1074
posted 15 years ago by loucypher
Move form element into category. Helper for organizing the form
0
765
posted 15 years ago by kosmikko
How to dwonload and use a Retro Avatar image in a iPhone App.
In this example: uid is a Facebook user id, optionally you can use any string, a name, a md5 hash of a email address and it is assumed you have an image view with tag id 1 you want to set...
1
1316
posted 15 years ago by ollie
This script creates thumbnail images containing 25 thumbs each and display the EXIF time and date if your version of ImageMagick supports that (some do not).
0
939
posted 15 years ago by deepsoul
Useful if some files already exist at the destination and are newer or would take too long to copy again.
0
821
posted 15 years ago by deepsoul
Very simple example of pulling in a JSON feed from Yahoo pipes using jQuery.
0
1504
posted 15 years ago by 1man
A very simple class that quickly gets you interacting with a database, as long as you know sql :P.
1
1573
posted 15 years ago by r3morse