Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
See here for Amazon EC2 range
https://forums.aws.amazon.com/ann.jspa?annID=877
0
2118
posted 15 years ago by daipratt
add this line: Cufon.replace('a', { hover: true });
before your actual cufon replace.
2
1630
posted 15 years ago by Savio
PHP
Handy PHP thing I can\'t come up with a title for; display different data depending on where user comes from, sort of
If user enters city.php from footer.php, page will return certain string. If user enters independently, solution lets user see predefined string (in this case, 'your city').
0
2576
posted 15 years ago by stephcode
Key for code below:
querystring = just the query string. (e.g. url=page)
index = the page that the query string is appended to (e.g. index.php)
domain.com = the domain and page you want to rewrite to
0
1746
posted 15 years ago by nielsenrc
Updated code (December, 2012) to get a tweet from a user's twitter timeline using JSON and jQuery
3
2521
posted 15 years ago by eddequincey
Found that the webmonkey tutorial code didn't work as double quotes were used around JSON string.
0
1575
posted 15 years ago by eddequincey
Stolen from stetho -- All thanks to him -- Now, about your folder actions… http://bit.ly/fW9ExM
0
2224
posted 15 years ago by brandonjp
Stolen from stetho -- All thanks to AppleScript to convert CMYK to RGB values http://bit.ly/eP2mXS
0
2345
posted 15 years ago by brandonjp
When using Joomla, allows you to redirect index.php to the root ( to prevent duplicate content ), without affecting the Joomla admin.
0
1739
posted 15 years ago by batfan
Use this to enhance non firefox browsers to support the sendAsBinary method.
1
1386
posted 15 years ago by theshoveller
found this somewhere online...not the author, but works like a charm
0
2010
posted 15 years ago by sadus
Cross domain issues occur when trying to read files such as .xml files of one domain in an other domain (two different websites, ie different IP:Port)
0
1494
posted 15 years ago by vriesdewie
This class can log messages to a file. If the log file becomes too large (over 1MB), the class will archive it and will create new. If there are archives older than one month, they will be deleted automatically.
In the future versions I will add th...
0
2126
posted 15 years ago by stz184
Excel macro to copy values from formated cells. For example:
If you have a sheet that has huge numbers in millions for example 1,312,323 and you apply a format to the cell such that only 1.3 is displayed, if you want to copy 1.3 and put it in a da...
1
2294
posted 15 years ago by abhisood
IE will redirect the entire page, and disable any ajax calls within an iframe application. This fixes those issues.
0
1726
posted 15 years ago by theriddlebrothers