Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
(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
1511
posted 16 years ago by AzizLight
Select some text to translate, or don't select anything to translate the entire page.
0
1850
posted 16 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
1686
posted 16 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
1899
posted 16 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
2046
posted 16 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
1601
posted 16 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
1807
posted 16 years ago by peta
The first directory listed is the one to copy, the second is where it's copied to.
0
1618
posted 16 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
3613
posted 16 years ago by adamcoulombe
This is an AS3 version of the banner template I created a while back in AS2. The code has been placed in the accompanying banner.as file, with the exception of a little bit of code within the dynamically-centering button you'll see placed on the stag...
0
1881
posted 16 years ago by Winkyboy
Using svnadmin hotcopy doesn’t require any server downtime, completes in minutes, and replicates server configuration and hook scripts.
1
2155
posted 16 years ago by Mithun
If you need to list all of the MySQL databases managed by Plesk along with their corresponding domains and login credentials, you can use this query:
1
1906
posted 16 years ago by tobewan
bash 3-line shell script for visualization of java class dependencies with graphviz. Please see my blog post for details and leave comments there.
0
1778
posted 16 years ago by benjamin