Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
From the Pickaxe, 4th edition, p. 352:
A rescue clause with no parameter is treated as if it had a parameter of StandardError. This means that some lower-level exceptions will not be caught by a parameterless rescue class. If you want to rescue ev...
1
2026
posted 15 years ago by cczona
I found some cases where JavaScript won't properly handle the Plus symbol (+)
0
2233
posted 15 years ago by Jamie
A simple script to show a followers list in Wordpress. (It can be used in other places also, you have to change the WP specific variables). The script needs to create a cache file to not overload Twitter API.
0
2051
posted 15 years ago by jhonqwerty
Useful to open an image for viewing from the command line under Windows, in this example the image is generated by the GraphViz dot command.
0
5511
posted 15 years ago by m1b
This is a very rudimentary function used to convert a Datetime delivered by the Twitter API to a format you can store in MySQL's datetime field.
0
3035
posted 15 years ago by aristoworks
Script para usar la librerÃa PHP Mailer para enviar un mail usando gmail como servidor SMTP.
Se debe descargar la librerÃa phpMailer (www.phpmailer.worxware.com).
Se usa una plantilla html para maquetar el cuerpo del mensaje.
Desde un serv...
0
2348
posted 15 years ago by alberomo
must install flac and lame
apt-get install flac
apt-get install lame
0
1697
posted 15 years ago by pbreah
Place at the top of your header.php to redirect visitors who are not logged-in to the Wordpress admin. I use this to redirect to a simple HTML 'coming soon' page while sites are in development.
1
2231
posted 15 years ago by adambundy