Skip to content

Instantly share code, notes, and snippets.

Avatar

Dave Carlson davecarlson

View GitHub Profile
View gist:a44162a12850378e997d
The combiner takes a comma-separated list of files:
eg: /jsc/reset.css,main.css
To use it, add this to your Apache Config:
RewriteRule ^/jsc/(.*\.js) /path/to/combine-gzip.inc.php?type=javascript&encoding=none&files=$1
RewriteRule ^/cssc/(.*\.css) /path/to/combine-gzip.inc.php?type=css&encoding=none&files=$1
And save the included php file to a suitable location. Your cache directory will need to be writable by the web server.
@davecarlson
davecarlson / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console