Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 362 363 364 365 366 ... 552
Retrieves a filename from a complete url
4 2297 posted 17 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 1988 posted 17 years ago by nate63179
In this instance, used as an after-deploy hook to create a symlink to a shared db config file
0 2076 posted 17 years ago by nate63179
A function for returning the ID of the current CMS page
1 2204 posted 17 years ago by nate63179
ready for .htaccess, creates 302 temp redirect
0 1930 posted 17 years ago by nate63179
Some shortcuts for retrieving URLs
0 1969 posted 17 years ago by nate63179
Puts a static block named 'contacts_text' into the page
0 1716 posted 17 years ago by nate63179
Template variables which can be used in static blocks or pages
0 1681 posted 17 years ago by nate63179
Automatically prepends the path of the store's skin to create a full url
0 1832 posted 17 years ago by nate63179
Where $_item is a product variable, and $this is a Block
0 1575 posted 17 years ago by nate63179
0 1731 posted 17 years ago by yisreldov
This will convert a *TimmerInterval* to a locaized date ...
0 1501 posted 17 years ago by yisreldov
0 1456 posted 17 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 2269 posted 17 years ago by Mithun
0 2023 posted 17 years ago by jeff_way
0 1725 posted 17 years ago by tobewan
0 1538 posted 17 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 1454 posted 17 years ago by inthewayboy
4 1497 posted 17 years ago by joshuabaker
0 1448 posted 17 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 1905 posted 17 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 1590 posted 17 years ago by AzizLight
1 ... 362 363 364 365 366 ... 552