Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
When offering some files such as mp3s, eps or xls, for download on your site, you may force download instead of letting the browser decide what to do.
This snippet will force the download of .xls and .eps files from your server.
0
805
posted 13 years ago by manuelpedrera
Nothing revolutionary, just a simple implementation.
A reworking from Brian Cray's source code:
http://briancray.com/2009/08/21/tweeted-links-twitter-api-php-cache/
Note: requires creating a cache file, '/caches/twitter', relative to source.
0
913
posted 13 years ago by richardmaisano
Asà es cómo se tiene que hacer la llamada a jquery desde facebook
0
673
posted 13 years ago by serialk89
This is about the simplest way I've found. See [this](http://stackoverflow.com/questions/1092463/getting-the-mac-address-of-the-remote-host) and [this](http://stackoverflow.com/questions/1092379/want-to-get-mac-address-of-remote-pc/1092392#1092392) a...
0
4294
posted 13 years ago by pckujawa
A simple function that will split a given string into sentences, and then return the number of sentences specified. Quick and dirty.
0
640
posted 13 years ago by adamturtle
Twitter have changed their api, and using the old twitter.com?status=… doesn't work anymore. This uses the new 'Web Intents' method.
0
698
posted 13 years ago by adamturtle
To enablefeatured image on a post, just open your theme’s functions.php file, paste in the code below, and voila!
0
761
posted 13 years ago by xavsio4
By putting the following code in your theme’s functions.php file, you create two extra sizes:
0
655
posted 13 years ago by xavsio4