Profile

Achievement

first submission:submitting first snipplet

iloveitaly's Recent Snippets



Before: ` Array ( [0] => Array ( [total_sessions] => 24 [study_type_id] => 1 ) [1] => Array ( [total_sessions] => 24 [study_type_id] => 2 )...
0 1329 posted 16 years ago by iloveitaly
0 1376 posted 16 years ago by iloveitaly
0 1168 posted 16 years ago by iloveitaly
0 1743 posted 16 years ago by iloveitaly
0 1265 posted 16 years ago by iloveitaly
Useful for controllers. Put this in your base class for easy caching on variable (GET, POST) dependent pages
0 1363 posted 16 years ago by iloveitaly
Using the kohana framework for XSS protection
0 1608 posted 16 years ago by iloveitaly
0 1394 posted 16 years ago by iloveitaly
Flash has a weird cache mechanism, this makes sure that the browser isn't caching any data.
0 2836 posted 16 years ago by iloveitaly
Convenience function to set a SimpleXMLElement's attributes quickly.
0 1345 posted 16 years ago by iloveitaly
Combine this with the my compression script and things load real fast. I think I pulled some of this code of a site on google... can't claim complete credit.
0 1693 posted 16 years ago by iloveitaly
A custom compression script I use for auto compression and gzip compression of my css & files. Also allows for 'debug' mode (uncompressed). You simply include the core.css & core.js in your <head>
0 1718 posted 16 years ago by iloveitaly
0 1031 posted 16 years ago by iloveitaly
This code was adapted from a snippet I found somewhere awhile back... can't claim complete credit
1 1945 posted 16 years ago by iloveitaly
Like python's os.listdir
1 1895 posted 16 years ago by iloveitaly
0 980 posted 16 years ago by iloveitaly
More for me than anything else
2 1274 posted 16 years ago by iloveitaly
Construct DateTime object with unix timestamp
0 1487 posted 16 years ago by iloveitaly
For some reason it took me a bit to realize that you had to use datetime.datetime
0 1434 posted 16 years ago by iloveitaly
Useful for SBApplication scripting bridge.
0 2008 posted 16 years ago by iloveitaly
like array_key_exists but accepts an array of key values to check
0 1134 posted 16 years ago by iloveitaly