Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Useful for stripping out backslashes, hyphens and other punctuation
0
3886
posted 14 years ago by gromitski
Replace "-" with anything you want to. Useful for amending URLs.
0
1853
posted 14 years ago by gromitski
This function shows how you can format a double value to a string with a given precision.
0
1444
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
1404
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
3652
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
1115
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
1096
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
1228
posted 14 years ago by stiobhart
Focus and keypress events determine when to hide, show, or dim a label.
Use in tandem with the following HTML/CSS:
HTML
----
<li>
<label>First Name</label>
<input>
</li>
CSS
----
li {
position: relative;
}
la...
0
1090
posted 14 years ago by mikemetcalf