Welcome To Snipplr


Everyone's Recent Snippets



1 ... 504 505 506 507 508 ... 552
fill your username and password
0 2099 posted 18 years ago by eszpee
1 3858 posted 18 years ago by frakim
Also see the automagic column builder on this page. YOU NEED THIS FILE TOO! Place it in the subfolder, "css/". http://snipurl.com/3col_support_css
4 2435 posted 18 years ago by Winkyboy
Set different values for an element based on browser (specifically, how the browser interprets the CSS). Definitions must be in order as shown below because newer definitions override existing. The first setting will apply to all browsers. The...
3 2347 posted 18 years ago by Winkyboy
Place the first function, phptemplate_links() in your template.php file. Alternatively (and IMO better) is to name the function your_theme_name_links() where your_theme_name is the name of your theme. From here on, you can add theme functions like...
2 2479 posted 18 years ago by berkes
1 1926 posted 18 years ago by smartalec
2 2213 posted 18 years ago by smartalec
Basically what this algorithm does is to replace the first letter of the serial number by a number (each letter represents where the banknote is originally from), then it calculates the sum of all digits. If the remaining of the division of that sum...
0 1669 posted 18 years ago by j_junyent
¿Por qué empeñarnos en hacer enlaces que actúen como botones? ¿Por qué no hacemos botones que parezcan enlaces?
0 1523 posted 18 years ago by j_junyent
Sometimes you can find error numbers in log files from various programs or even the kernel. This one-liner can be used to convert the error number into a meaningful message. "X" is the error number.
0 1836 posted 18 years ago by amosshapira
In response to a very simplistic solution suggestion using Shell, here is a basic version of what I use. The advantage of the solution below is that it is supposed to be much faster on directories with many files (I regularly use its full-blown versi...
0 1864 posted 18 years ago by amosshapira
Fix probleme de transparence avec le background sous iE. Pour "crop" ou "image".
1 2321 posted 18 years ago by frakim
1 4153 posted 18 years ago by darkphotn
Yes, this is valid code. Designed by myself, unless otherwise noted.
0 2378 posted 18 years ago by darkphotn
Large factorials are easy to do in LISP, although a number above (2000!) may crash it. I designed this because of an online post from a mathematician talking about the number 1000! . Code like this is difficult to write in C-like languages, but a s...
0 4100 posted 18 years ago by darkphotn
This demonstrates how to make your own console "scripts" using C -- for example, you could capitalize every character that comes in. Tweak the line labelled "TWEAK THIS LINE" in order to get it to do what you want. This particular example will add...
1 1871 posted 18 years ago by darkphotn
This demonstrates a simple "Hello World" style program for 16-bit (DOS) x86 assembly using Microsoft's free MASM assembler.
0 7089 posted 18 years ago by darkphotn
0 1548 posted 18 years ago by imhugo
This requires ImageMagick installed. Resize, as well as convert the image format. (Note: either of WIDTH or HEIGHT can be left blank, e.g. WIDTHx and the image will be resized proportionally)
1 2174 posted 18 years ago by soroush
0 3995 posted 18 years ago by usharf
0 2229 posted 18 years ago by d3f0
2 2002 posted 18 years ago by ajbatac
3 3077 posted 18 years ago by smurf
0 1635 posted 18 years ago by todbertuzzi
Very simple style switcher using jquery. Takes 3 links with id's on each. When one is clicked various styles are removed, then a new one is added.
3 2547 posted 18 years ago by 1man
1 ... 504 505 506 507 508 ... 552