Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Just the bare essentials needed to produce a jQuery.Cycle.Lite powered image sequence...make sure you adjust paths according to your needs!
1
797
posted 15 years ago by inthewayboy
Creates backups of "file.ext" in the form "file.Bx.ext", where Bx represents a sequential backup number from 1 (most recent) to 5 (oldest)
Put the following symbolic links in your path
ln -s path-to-this-file/age.py age
ln -s path-to-...
0
1035
posted 15 years ago by SimonTite
(I am not the author of this script. I suppose the homepage of the author is the following: [http://iyoremo.com/](http://iyoremo.com/))
1
836
posted 15 years ago by AzizLight
$('#myTable').find('.firstColumn').makeRed().append('hello');Â Â
1
877
posted 15 years ago by dvdrtrgn
Select some text to translate, or don't select anything to translate the entire page.
0
963
posted 15 years ago by wizard04
When you put an image in a printable document, you don't want it to have black (or coloured) background. ImageMagick allows to replace colours even when the coloured regions are non-contiguous. Arbitrary colour values can be specified with `\#12345...
0
948
posted 15 years ago by deepsoul
Find the most recently modified file in a directory tree and output its name and modification time. Use index 8 or 10 instead of 9 for access and inode modification time, respectively (see perlfunc manual page - function stat).
This is great for...
0
1072
posted 15 years ago by deepsoul
Once the automatic button placement for the ShareThis plugin has been deactivated, this function added to custom_functions.php will place the button on single posts only (not the home page).
1
1197
posted 15 years ago by thesislab
This is just a basic jQuery crossfade plugin. Should be executed on a list object (ul or ol) because it does specifically look for the li children. The plugin, as implemented, has two options, speed and pause. Speed being the speed at which the top i...
0
898
posted 15 years ago by jdfwarrior
The Number objects value determines how often the supplied function is repeated.
Inspired by ROR & Python.
"Pollutes" Number's prototype.
0
992
posted 15 years ago by peta
The first directory listed is the one to copy, the second is where it's copied to.
0
904
posted 15 years ago by beneberle
This example uses file_get_contents to retrieve remote HTML. From there, we can parse through it using PHP5's DOMDocument and DOMXpath. XPath Queries are easy to create using the Firefox extension "XPather"
3
2290
posted 15 years ago by adamcoulombe