Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 494 495 496 497 498 ... 553
Beware of requiring 'CGI'. There's trouble in them thar hills/
1 927 posted 17 years ago by cczona
Forces a recalcitrant port to install by *uninstalling* it completely first
0 1013 posted 17 years ago by cczona
//for options available, see: http://www.ss64.com/bash/shopt.html
1 1598 posted 17 years ago by cczona
1 1409 posted 17 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 1443 posted 17 years ago by jhenry
This is an example of how to map a Java 5 enum when using Hibernate ORM.
0 1489 posted 17 years ago by narkisr
taken from wordpress-- it took me a whole to find this on their site
3 1628 posted 17 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 2083 posted 17 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 1719 posted 17 years ago by localhorst
This snippet shows you how to limit the download rate of a file download.
18 11336 posted 17 years ago by localhorst
Accessing JQuery's $() shortcut within WordPress
1 1382 posted 17 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 1922 posted 17 years ago by hellion
Use this snippet to quickly insert onclick="window.open();" into your HTML... --- Snippets can save you time and hassle of typing out bits of code that you frequently use by adding them into your files by simply double-clicking the name of the Sn...
1 1781 posted 17 years ago by hellion
I'm sure i can clean this up quite a bit, but it works for the moment. This function looks to see if you are on a selected page. If you are it hides the navigation, then loops through and shows each li one after the other. So they don't all fade i...
0 1468 posted 17 years ago by 1man
I modified some code created by Macromedia Dreamweaver into a flexible function to rebuild the query string. The function is very useful for pagination or passing variables from one page to another.In this version it's possible to add more than one v...
1 1489 posted 17 years ago by gbot
A small function I made to chmod directories and files recursively, with different permissions.
2 2238 posted 17 years ago by Tenzer
5 1972 posted 17 years ago by beforebeta
10 2578 posted 17 years ago by gbot
Change selection color using CSS. Works in most modern browsers except for IE.
3 1853 posted 17 years ago by neal_grosskopf
0 1176 posted 17 years ago by rob_cowie
3 1755 posted 17 years ago by gbot
2 1507 posted 17 years ago by gbot
1 1377 posted 17 years ago by gbot
3 1220 posted 17 years ago by gbot
1 ... 494 495 496 497 498 ... 553