Skip to content

Instantly share code, notes, and snippets.

View christianchristensen's full-sized avatar

Chris Christensen christianchristensen

View GitHub Profile
#!/bin/sh
# uses Google's Closure Compiler - http://code.google.com/p/closure-compiler/
test -e $1 && java -jar /path/to/compiler.jar --js $1 --js_output_file `basename $1 .js`.min.js
.DS_Store
*.csv
*.pdf
javascript:for(var i=0;i<document.links.length;i++){var a=document.links[i];if(a.href.indexOf('mailto:')==0){a.innerHTML=a.href;a.style.backgroundColor='red';a.style.color='white'}};return true;
[alias]
st = status
co = checkout
cb = checkout
df = diff --no-prefix && git diff --staged --no-prefix --ignore-space-change
[apply]
whitespace = nowarn
[color]
ui = auto
diff = auto
[user]
name = Glenn Pratt
email = glenn@allplayers.com
[color]
grep = auto
diff = auto
status = auto
branch = auto
ui = auto
[color "diff"]
@ryansmith3136
ryansmith3136 / .screenrc
Created October 28, 2010 04:25
screenrc file
# copied from @solidsnack
nethack on
vbell on
defutf8 on
defscrollback 16384
backtick 1 1 1 date -u +%Y-%m-%dT%TZ
logtstamp on
@abackstrom
abackstrom / Makefile
Created November 2, 2010 09:45
CSS and JavaScript Minification/Compression Makefile
#
# css/js minification/compression makefile
#
#
# JS_TARGETS -- js files to minify/gzip
# CSS_TARGETS -- css files to minify/gzip
# CLEANUP -- additional files to delete during "make clean"
#
@visnup
visnup / README.js
Created November 15, 2010 21:36 — forked from igrigorik/webapp.rb
node.js version inspired by igrigorik's any ruby object, as a webapp! 'cause we can too.
#!/usr/bin/env node
var http = require('http')
, webapp = require('webapp');
http.createServer(webapp.bind([])).listen(8000);
// ^^^^^^^^^^^^^^^
// | (x)
// ROFLSCALE DEQUE ---/
@creationix
creationix / _README.markdown
Created November 29, 2010 19:50
Rectify Challenge

Rectify

Takes a grid and returns an optimal set of rectangles that fills that grid

For example, the following grid:

[[1,1,0,1,1],
 [1,1,1,1,1],
 [0,1,1,1,0]]
@nathansmith
nathansmith / crash_old_ie.html
Last active September 24, 2015 09:08
This should crash IE6 & IE7.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Crash IE6 + IE7</title>
<!--[if IE 6]>
<script>