Profile
Achievement
nate63179's Recent Snippets
- All /
« Prev 1 Next »
A handy, generic form processor which validates presence of fields marked in a hidden value, like: <input>. Easy to override and customize as needed.
Adapted from a script found in PHP 5 Unleashed.
1
2113
posted 16 years ago by nate63179
Credit: http://pragmatig.wordpress.com/2009/04/14/recursive-symbolize_keys/
0
1464
posted 16 years ago by nate63179
url: http://www.example.com/?foo=bar
usage: $_GET['foo'] // 'bar'
0
1308
posted 16 years ago by nate63179
Great script found on http://www.scrounge.org/linux/rsync.html. Useful for creating boilerplate backup scripts
1
1429
posted 16 years ago by nate63179
Handy function for converting milliseconds to video timecode
1
2070
posted 16 years ago by nate63179
A simple class and event which can be used to load external assets
1
1538
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
1610
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
1694
posted 16 years ago by nate63179
Template variables which can be used in static blocks or pages
0
1339
posted 16 years ago by nate63179
Automatically prepends the path of the store's skin to create a full url
0
1519
posted 16 years ago by nate63179