Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 362 363 364 365 366 ... 552
0 1642 posted 16 years ago by tobewan
Retrieves a filename from a complete url
4 2165 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 1889 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 1972 posted 16 years ago by nate63179
A function for returning the ID of the current CMS page
1 2085 posted 16 years ago by nate63179
ready for .htaccess, creates 302 temp redirect
0 1793 posted 16 years ago by nate63179
Some shortcuts for retrieving URLs
0 1855 posted 16 years ago by nate63179
Puts a static block named 'contacts_text' into the page
0 1624 posted 16 years ago by nate63179
Template variables which can be used in static blocks or pages
0 1587 posted 16 years ago by nate63179
Automatically prepends the path of the store's skin to create a full url
0 1743 posted 16 years ago by nate63179
Where $_item is a product variable, and $this is a Block
0 1479 posted 16 years ago by nate63179
0 1637 posted 16 years ago by yisreldov
This will convert a *TimmerInterval* to a locaized date ...
0 1390 posted 16 years ago by yisreldov
0 1376 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 2092 posted 16 years ago by Mithun
0 1907 posted 16 years ago by jeff_way
0 1612 posted 16 years ago by tobewan
0 1451 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 1388 posted 16 years ago by inthewayboy
4 1418 posted 16 years ago by joshuabaker
0 1375 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 1803 posted 16 years ago by SimonTite
1 ... 362 363 364 365 366 ... 552