Welcome To Snipplr


Everyone's Recent Snippets



1 ... 362 363 364 365 366 ... 552
0 1648 posted 16 years ago by tobewan
Retrieves a filename from a complete url
4 2169 posted 16 years ago by nate63179
This could be further abstracted to work with other db's. Also, it really should be using Ruby's Tempfile class instead of assuming the local machine is *NIX based, but it works :)
0 1894 posted 16 years ago by nate63179
In this instance, used as an after-deploy hook to create a symlink to a shared db config file
0 1984 posted 16 years ago by nate63179
A function for returning the ID of the current CMS page
1 2093 posted 16 years ago by nate63179
ready for .htaccess, creates 302 temp redirect
0 1803 posted 16 years ago by nate63179
Some shortcuts for retrieving URLs
0 1863 posted 16 years ago by nate63179
Puts a static block named 'contacts_text' into the page
0 1628 posted 16 years ago by nate63179
Template variables which can be used in static blocks or pages
0 1592 posted 16 years ago by nate63179
Automatically prepends the path of the store's skin to create a full url
0 1745 posted 16 years ago by nate63179
Where $_item is a product variable, and $this is a Block
0 1486 posted 16 years ago by nate63179
0 1643 posted 16 years ago by yisreldov
This will convert a *TimmerInterval* to a locaized date ...
0 1393 posted 16 years ago by yisreldov
0 1377 posted 16 years ago by joshuabaker
his set of Javascript functions trim or remove whitespace from the ends of strings. These functions can be stand-alone or attached as methods of the String object. They can left trim, right trim, or trim from both sides of the string. Rather than usi...
2 2101 posted 16 years ago by Mithun
0 1919 posted 16 years ago by jeff_way
0 1615 posted 16 years ago by tobewan
0 1455 posted 16 years ago by nate63179
Just the bare essentials needed to produce a jQuery.Cycle.Lite powered image sequence...make sure you adjust paths according to your needs!
1 1390 posted 16 years ago by inthewayboy
4 1421 posted 16 years ago by joshuabaker
0 1379 posted 16 years ago by joshuabaker
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 1806 posted 16 years ago by SimonTite
1 ... 362 363 364 365 366 ... 552