Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
So. You have some minutes and want a "human readable" version? Sure thing baby!
2
6710
posted 16 years ago by optimal
Populate your states table with US States. Easy rake task for it.
2
1002
posted 16 years ago by twofivethreetwo
Click on an input field with a prefilled value, if that value equals the default then select it, if not leave it as it was. Relies on jQuery.
2
1627
posted 16 years ago by 1man
Usage:
formatDecimals(3.1415926, 3);
returns: 3.141.
Also adds zeros to end if needed.
0
774
posted 16 years ago by Mijos
I was having the hardest time getting this to work. It's a collection of various items. For whatever reason, I needed to include the CASE statement due to NULL's coming back. If this helps you out... go for it.
0
829
posted 16 years ago by gembry
[quote]$_SERVER['HTTP_REFERRER']'s problem is that can be spoofed, but it's better than nothing if you really want that.[/quote]
1
1181
posted 16 years ago by luizlopes
In this case I'm looking for image sources in html and placing them in array.
1
1055
posted 16 years ago by leonbda
Place javascrip refernce or complete javascript code in page header from ascx or aspx file.
0
1149
posted 16 years ago by leonbda
This is a simplified example for cut and paste use for command line parsing arguments with the use of an options hash
0
1093
posted 16 years ago by kfaulk1