Welcome To Snipplr


Everyone's Recent Snippets



1 ... 493 494 495 496 497 ... 552
Creating a horizontal row of objects that are equidistant from each other is another one of those things in web design that is much more difficult than it should be. This can be a very useful thing to do, especially in fluid width layouts when you ar...
1 2145 posted 18 years ago by localhorst
Following a
2 1925 posted 18 years ago by cczona
This will always show the correct date... so it'll say "Copyright 2008 Comapany Name" now, and at exactly midnight on 1st January 2009, it'll say "Copyright 2009 Company Name". Simple!
2 2293 posted 18 years ago by tigercore
This is handy for testing, when you need to simulate an open file or open URI. Why, and the Pickaxe book, have better examples
1 1971 posted 18 years ago by cczona
3 2175 posted 18 years ago by picale
URI objects can be opened directly by open-uri
0 2105 posted 18 years ago by cczona
0 1786 posted 18 years ago by f0vela
0 1937 posted 18 years ago by f0vela
1 1934 posted 18 years ago by f0vela
0 2083 posted 18 years ago by f0vela
adds a header to a myspace page right at the top. looks pretty cool.
0 1799 posted 18 years ago by rodreegez
You can turn off warnings for a section of your code by setting $VERBOSE to nil. Even better is to codify this in a method. Since this method takes a block as its parameter, you can now pass it arbitrary chunks of code to execute without warnings.
1 1876 posted 18 years ago by cczona
Beware of requiring 'CGI'. There's trouble in them thar hills/
1 1369 posted 18 years ago by cczona
Forces a recalcitrant port to install by *uninstalling* it completely first
0 1436 posted 18 years ago by cczona
//for options available, see: http://www.ss64.com/bash/shopt.html
1 2227 posted 18 years ago by cczona
1 1891 posted 18 years ago by wastepixel
output can be run as a shell script. should be able to refactor this as a piped wget, i think
1 2019 posted 18 years ago by jhenry
This is an example of how to map a Java 5 enum when using Hibernate ORM.
0 1950 posted 18 years ago by narkisr
taken from wordpress-- it took me a whole to find this on their site
3 2175 posted 18 years ago by melvitax
Serve your xhtml pages correctly with this script and xsl file. Most websites serve their xhtml pages as text and not xml to Internet Explorer. With this it will serve to IE as xml. Your sites will be more valid because they will validate against the...
1 2659 posted 18 years ago by neal_grosskopf
When processing text for a search engine or analysis tool, code needs to strip out punctuation, formatting, spacing, and control characters to reveal indexable text. In international text there are hundreds of these characters, and some should be rem...
1 2273 posted 18 years ago by localhorst
This snippet shows you how to limit the download rate of a file download.
18 13038 posted 18 years ago by localhorst
Accessing JQuery's $() shortcut within WordPress
1 1905 posted 18 years ago by melvitax
How to use: 1) < script type="text/javascript" src="path-to-file.js"... 2) < body onload="oHW.preMontar('img1_on.jpg','img2_on.jpg','img3_on.jpg');"... 3) < a href="#" onmouseout="oHW.Restore()" onmouseover="oHW.Cambiar('mnind','img1_on.jpg'...
2 2618 posted 18 years ago by hellion
1 ... 493 494 495 496 497 ... 552