Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Ordenamento de array para exibição em colunas múltiplas, via UL float.
0
916
posted 14 years ago by dessimoni
Here are some IDs for the default links WP 3.1 adds, found in /wp-includes/admin-bar.php:
my-account / my-account-with-avatar : the first link, to your account. Note that the ID here changes depending on if you have Avatars enabled or not.
my-blo...
0
1045
posted 14 years ago by crs
Useful for stripping out backslashes, hyphens and other punctuation
0
3650
posted 14 years ago by gromitski
Replace "-" with anything you want to. Useful for amending URLs.
0
1710
posted 14 years ago by gromitski
This function shows how you can format a double value to a string with a given precision.
0
1328
posted 14 years ago by bits
This function will insert items into an orders alphabetically (assuming it's already alphabetical). Initially design to make a smooth single page load/save feature that sotred everything in drop down lists, you guessed it, alphabetically. Can simply...
0
1270
posted 14 years ago by FatFolderDesigner
This is a really short function you can use inside The Loop to get the parent page slug (useful to add to the body classes or something)
0
3543
posted 14 years ago by tomasdev
Digs through the exim log and gives a count for every email address that's generating SMTP errors
0
1051
posted 14 years ago by beaknit
at least until HTML5 unifies all this crap into one tag, this helps me remember the three concurrent versions we need to use to cover all bases.
0
1017
posted 14 years ago by stiobhart
CSS box shadow syntax - just because i can never remember the order of the attributes, off the top of my head!
0
1159
posted 14 years ago by stiobhart