Skip to content

Instantly share code, notes, and snippets.

View lukejones's full-sized avatar

Luke Jones lukejones

View GitHub Profile
@lukejones
lukejones / CSS
Created February 10, 2012 10:47
Expanding / collapsing navigation
ul {
margin:0.5em 0;
padding:0 0 0 1em;
}
ul ul {
margin: 0;
}
a.active, li.active a {
@lukejones
lukejones / createThumb.php
Created February 9, 2012 09:33
Nice things
<?php
define ('CACHE_SIZE', 1000); // number of files to store before clearing cache
define ('CACHE_CLEAR', 20); // maximum number of files to delete on each cache clear
define ('CACHE_USE', TRUE); // use the cache files? (mostly for testing)
define ('CACHE_MAX_AGE', 864000); // time to cache in the browser
define ('VERSION', '1.28'); // version number (to force a cache refresh)
define ('DIRECTORY_CACHE', './cache'); // cache directory
define ('MAX_WIDTH', 900); // maximum image width
define ('MAX_HEIGHT', 900); // maximum image height
define ('ALLOW_EXTERNAL', FALSE); // allow external website (override security precaution - not advised!)