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
839
posted 13 years ago by anagaiyahoocom
you may not want to use the buggy apt version. just compile it yourself
0
720
posted 13 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
1053
posted 13 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
1053
posted 13 years ago by rowntreerob
Wanna lose the time portion of the date something was created in a smart search result!?!?
0
853
posted 13 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
705
posted 13 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
633
posted 13 years ago by jamiebrwr
Using the bootstrap provided by http://jonathonhill.net/codeigniter/cron/
0
479
posted 13 years ago by littlebird
Mockup of how to create a SessionContext using PHP SOAP and ClientServices 2
0
560
posted 13 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
760
posted 13 years ago by inreflection7