Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is a script [tweeted by @gregmuellegger](http://twitter.com/gregmuellegger/status/16618146398). Example usage: Supports f("Hello %s.", ["World"]) and f("Hello %(name)s.", {name: "World"})
0
1132
posted 14 years ago by glends
1st shows only files and directories bigger than 1 Megabyte
2nd shows only files and directories bigger than 100 Megabyte
0
890
posted 15 years ago by kossmoss
If you need to sort an array in javascript this is how it should be done. Casting toLowerCase() is optional but but necessary if fx "Anne" was spelled "anne"
0
1008
posted 15 years ago by fengelz
ASP
MySQL: Preventing "Unable to convert MySQL date/time value to System.DateTime" (Invalid Date Data).
Changing the connection string in the web.config to allow zero date and converting it prevents this error.
0
1206
posted 15 years ago by jink
Add the System.Data config settings for MySql. Update the version to number referenced.
0
916
posted 15 years ago by jink
[via rtcrm]
Image/Text replacement for clickable image. This is useful for logo images.
1
953
posted 15 years ago by mennyj
[via rtcrm]
This uses *no javascript* and will still render in IE, Safari, Firefox, and Opera.
0
961
posted 15 years ago by mennyj
[via rtcrm]
CSS Browser Selector is a very small javascript with just one line and less than 1kb which empower CSS selectors. It gives you the ability to write specific CSS code for each operating system and each browser.
2
1026
posted 15 years ago by mennyj
[via rtcrm]
<b>Needed:</b><br>
- Video in FLV format.<br>
- video_player.swf (standard player, which resizes for any flv).<br><br>
<b>Notes:</b><br>
- SWF and FLV files can live anywhere.<br>
- Location of FLV is relative to the location of v...
0
1166
posted 15 years ago by mennyj
[via rtcrm]
Since HTML5 is getting [more](http://www.brucelawson.co.uk/tests/html5-elements.html) [attention](http://adactio.com/journal/1540/) by way of marking up our new pages, and the only way to get IE to acknowledge the new elements, such as...
0
927
posted 15 years ago by mennyj
[via rtcrm]
Video for Everybody is very simply a chunk of HTML code that embeds a video into a website using the HTML5 `<video>` element which offers native playback in Firefox 3.5 and Safari 3 & 4.
This is native OGG video playback in Firefox 3....
3
1152
posted 15 years ago by mennyj
A quick script to add all of your unversioned files. Good when working in bulk.
0
813
posted 15 years ago by philsown
The standard codeigniter pagination class doesn't allow you to use images in the pagination navigation. I altered the default pagination class a bit. Now you can add the path to the images for the previous link, next link, digit and active digit in e...
2
1301
posted 15 years ago by stevendobbelaere