Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Format a number so it is more humanly readable. It allows for setting the number of decimal places (inc. adding 0000s to the end) and separating thousands with a comma.
Example usage:
trace(numberFormat(1234.695, 2, true, false));
// Output:...
0
1570
posted 15 years ago by adrianparr
Instead of ~/.ssh/id_rsa.pub, you can choose any location on your local machine where your *public* key lives.
You may need to adjust the file permissions on remote authorized_keys aftwterwards, depending on the configuration of the remote ssh serve...
0
1187
posted 15 years ago by berkes
This is a combination of two fixes from Michael at [WPEngineer.com](http://wpengineer.com/a-solution-for-the-wordpress-gallery "WPEngineer.com"), which removes the styles from the gallery output, and a follow-up comment by [Aaron Cimolini](http://wpe...
1
1174
posted 15 years ago by lancemonotone
Can be used on any machine with PERL installed. Just execute this script in the directory and it will remove .svn folders recursively
0
1166
posted 15 years ago by TEHEK
Looked for a simple, efficient cross-fading script that does it properly without fading to the background color. This script uses z-indexes to prevent the background from ever showing, creating a smooth fade.
0
823
posted 15 years ago by relaxasaurus
Use it on your AreaRegistrationContext via the extension MapRouteLowercase
0
1096
posted 15 years ago by jmcd
Con esta funcion podemos recortar una cadena de texto indicandole cuantos caracteres queremos que tenga y ademas no cortara la ultima palabra.
0
883
posted 15 years ago by jacinmontava
I was recently faced with the problem of setting focus to the next input field. The challenge was that I didn’t know what that field was. So given an input field, find the next logical (in the order of the DOM) input field and set focus. I came up...
1
1457
posted 15 years ago by Meander365
Place the following code in header.php before the call to wp_head().
(If you do not include the exact version number when calling libraries from Google's AJAX Libraries API, a redirect is used to pull up the most current version. While this is han...
3
1381
posted 15 years ago by chrisdpratt
Full example widget available at [WP Engineer](http://wpengineer.com/wordpress-built-a-widget/ "Build A WordPress 2.8 Widget With The New Widget API").
0
998
posted 15 years ago by chrisdpratt
With 10.5 Apple deprecated the use of NSMailDelivery – without a replacement. So the questions comes up regulary – how does one send emails from Cocoa? Turns out there are couple of frameworks available that can also be used to do the job.
*...
0
1755
posted 15 years ago by zingo
I can't help thinking that good use of jQuery & Javascript must use extensive comments
0
1179
posted 15 years ago by PandaWood
Simple function that sorts a bi-dimensional array by one of it keys.
1
1283
posted 15 years ago by AlejoLuc