Welcome To Snipplr


Everyone's Recent Snippets



1 ... 362 363 364 365 366 ... 552
0 1699 posted 16 years ago by tobewan
Retrieves a filename from a complete url
4 2232 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 1938 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 2031 posted 16 years ago by nate63179
A function for returning the ID of the current CMS page
1 2144 posted 16 years ago by nate63179
ready for .htaccess, creates 302 temp redirect
0 1852 posted 16 years ago by nate63179
Some shortcuts for retrieving URLs
0 1908 posted 16 years ago by nate63179
Puts a static block named 'contacts_text' into the page
0 1661 posted 16 years ago by nate63179
Template variables which can be used in static blocks or pages
0 1625 posted 16 years ago by nate63179
Automatically prepends the path of the store's skin to create a full url
0 1778 posted 16 years ago by nate63179
Where $_item is a product variable, and $this is a Block
0 1521 posted 16 years ago by nate63179
0 1683 posted 16 years ago by yisreldov
This will convert a *TimmerInterval* to a locaized date ...
0 1430 posted 16 years ago by yisreldov
0 1396 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 2157 posted 16 years ago by Mithun
0 1963 posted 16 years ago by jeff_way
0 1660 posted 16 years ago by tobewan
0 1493 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 1408 posted 16 years ago by inthewayboy
4 1445 posted 16 years ago by joshuabaker
0 1402 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 1842 posted 16 years ago by SimonTite
1 ... 362 363 364 365 366 ... 552