Welcome To Snipplr


Everyone's Recent Snippets



1 ... 515 516 517 518 519 ... 553
Script takes links that are not on your domain and opens them in a new window. This code allows for XHTML strict validation and meets Accessibility criteria on opening new windows.
5 1765 posted 18 years ago by skatan
Needs object detection to be completely unobtrusive
3 1185 posted 18 years ago by skatan
Needs to include object detection to be completely unobtrusive
1 1038 posted 18 years ago by skatan
Manipulate the names of all the files in a folder in bash
4 1485 posted 18 years ago by benpjohnson
Obviously there's no real crytpo here -- use this for cases like regenerating and emailing a user password.
1 1463 posted 18 years ago by ches
0 991 posted 18 years ago by vanne
an HTML template for form CSS styling
11 2795 posted 18 years ago by maid450
A way to call a function before the window is unloaded/refreshed/etc. Used in the first E-shot Management System. Useful for auto-saving data/content before the window is closed or refreshed.
1 1591 posted 18 years ago by andyhartleeds
Strip out non-alphanumeric characters. Very useful for use with filenames.
3 1550 posted 18 years ago by andyhartleeds
Include JavaSript files.
0 907 posted 18 years ago by Diego
This shows how to use a module that normally needs a 'qw' attachment to the use statement (hint: its the = sign). You can add others by using comma separated values.
0 1205 posted 18 years ago by wolfie
give a class name to each link according to the page it redirects to. give attribute id to the body of the template and make the attribute editable (Dreamweaver lets you do that: select the attrib, Modify>Templates>Make attribute editable and tick t...
1 1682 posted 18 years ago by valcartei
Quick way to lock up some sensitive files?
0 1513 posted 18 years ago by micmath
This takes about an hour in total to run on my machine, so give yourself enough time. Obviously the configure options will need to be tweaked to match your set up, but this works for me. This assumes you already have MySQL installed.
0 1175 posted 18 years ago by micmath
0 1023 posted 18 years ago by micmath
0 1141 posted 18 years ago by rengber
Use this to upload and resize your images using RMagick. Code by nixnewbie.
2 1693 posted 18 years ago by Tricon
Really stop default action of a element.
1 1471 posted 18 years ago by fael
Another image preloader.
6 1658 posted 18 years ago by fael
a function that returns the absolute position in DOM tree. jQuery based
1 1181 posted 18 years ago by fael
This temperature measurement script is one that comes from the original NPDS package. As formatted, it is meant to be used as an NPDS SSI tag. It obtains the current battery temperature and returns it in degrees Celsius.
0 3126 posted 18 years ago by splorp
After: sudo port -v selfupdate Update outdated ports with: sudo port upgrade outdated
1 1456 posted 18 years ago by rhockens
After installing MacPorts, try running a selfupdate to grab all the latest MacPorts Portfiles (Portfiles contain information about how to install MacPorts software "ports"). You will need to run this command as an administrator, and it requires root...
0 1077 posted 18 years ago by rhockens
0 1140 posted 18 years ago by sudarkoff
Leave off the final pipe to /bin/sh to do a 'dry run'
3 2232 posted 18 years ago by ches
1 ... 515 516 517 518 519 ... 553