Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This will check if object is an array object.
This will add isArray() method to Array native object. Can be used to check if passed in object is an array. Future ecmascript 5 will have this included. Can use this in the meantime.
Using instance...
0
1271
posted 14 years ago by anagaiyahoocom
you may not want to use the buggy apt version. just compile it yourself
0
1069
posted 14 years ago by abstraktor
A user may click a link on a mobile site which should open a page on the desktop site, not the mobile site. Appending the following code to the link will do that.
0
1425
posted 14 years ago by amandalaine
ffmpeg to create video that will upload OK to youtube
2 pass libx264 encoder followed by 1-pass .wmv output example
0
2293
posted 14 years ago by rowntreerob
Wanna lose the time portion of the date something was created in a smart search result!?!?
0
1182
posted 14 years ago by inreflection7
use <?php>/images/someimage.gif
Such a path resolves to ..
http://www.yoursite.com/wp-content/themes/YOURTHEME/images/someimage.gif
0
1077
posted 14 years ago by disgruntledillon
Just replace the URL in the fetch_rss line below with the RSS feed to your Twitter favorites. In fact this will work with any RSS feed.
0
894
posted 14 years ago by jamiebrwr
Using the bootstrap provided by http://jonathonhill.net/codeigniter/cron/
0
706
posted 14 years ago by littlebird
Mockup of how to create a SessionContext using PHP SOAP and ClientServices 2
0
815
posted 14 years ago by patriksvenssonmpsbroadbandcom
IE7 can be a pain when it comes to input submit buttons. In order to get the value to disappear using the text-indent: -999em; trick make sure to set text-transform: capitalize;
0
1122
posted 14 years ago by inreflection7