Welcome To Snipplr


Everyone's Recent Snippets



1 ... 294 295 296 297 298 ... 553
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 1413 posted 15 years ago by glends
0 1419 posted 15 years ago by ekinertac
1st shows only files and directories bigger than 1 Megabyte 2nd shows only files and directories bigger than 100 Megabyte
0 1178 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 1226 posted 15 years ago by fengelz
0 3323 posted 15 years ago by supermauerbros
0 1290 posted 15 years ago by mracoker
Changing the connection string in the web.config to allow zero date and converting it prevents this error.
0 1602 posted 15 years ago by jink
Add the System.Data config settings for MySql. Update the version to number referenced.
0 1171 posted 15 years ago by jink
JS to dynamically update year -- good for copyright.
0 1232 posted 15 years ago by mennyj
[via rtcrm] Image/Text replacement for clickable image. This is useful for logo images.
1 1168 posted 15 years ago by mennyj
[via rtcrm] This uses *no javascript* and will still render in IE, Safari, Firefox, and Opera.
0 1217 posted 15 years ago by mennyj
[via rtcrm]
0 1090 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 1453 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 1465 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 1228 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 1648 posted 15 years ago by mennyj
A quick script to add all of your unversioned files. Good when working in bulk.
0 1065 posted 15 years ago by philsown
2 1585 posted 15 years ago by silverskymedia
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 1670 posted 15 years ago by stevendobbelaere
Just set the variable `$email` to the user's email address. Hey presto! A Gravatar image! You can also change the size by adjusting the `s=32` variable. Size is in pixels.
1 905 posted 15 years ago by JackWH
This is a simple Linq query against a list of Star Wars characters.
1 1043 posted 15 years ago by stewshack
1 ... 294 295 296 297 298 ... 553