Skip to content

Instantly share code, notes, and snippets.

View esundahl's full-sized avatar

Erik Sundahl esundahl

View GitHub Profile
@esundahl
esundahl / node.gitignore
Created April 19, 2012 16:18
Gitignore Templates
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
pids
@esundahl
esundahl / custom-dev-tools.css
Created June 30, 2012 21:42
Custom Dev Tools Theme
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
@esundahl
esundahl / border-box
Created July 17, 2012 21:07
Factor Padding Into the Width of DOM Elements
*
-moz-box-sizing: border-box
-webkit-box-sizing: border-box
box-sizing: border-box
line-height: 1.2em
@esundahl
esundahl / Pastels.itermcolors
Created August 14, 2012 23:51
Pastel iTerm2 Colors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.1098039299249649</real>
<key>Green Component</key>
<real>0.1098039299249649</real>
@esundahl
esundahl / querystring.js
Created November 9, 2012 23:22
javascript function for parsing a url query string
function params (string) {
res = {};
string.replace("?","").split('&').map(
function (q) {
var v = q.split('=');
res[v[0]] = v[1];
});
@esundahl
esundahl / index.html
Created November 16, 2012 23:29
A CodePen by Erik Sundahl. CSS3 Transform Loader
<div class='loading'>!</div>
@esundahl
esundahl / index.html
Created November 16, 2012 23:30
A CodePen by Erik Sundahl. CSS3 Transform Loader
<div class='loading'>!</div>
@esundahl
esundahl / Pastel
Created February 16, 2013 04:39
My custom vim theme
set background=dark
highlight clear
if exists("syntax on")
syntax reset
endif
let g:colors_name="Pastel"
hi Normal guifg=#e6b9de guibg=#252525
hi Comment guifg=#f2f2f2 guibg=NONE
hi Constant guifg=#e5bc95 guibg=NONE
hi String guifg=#e5bc95 guibg=NONE
@esundahl
esundahl / marks.sh
Created August 17, 2013 15:45
bash directory bookmarking functions
export MARKPATH=$HOME/.marks
function jump {
cd -P $MARKPATH/$1 2>/dev/null || echo "No such mark: $1"
}
function mark {
mkdir -p $MARKPATH; ln -s $(pwd) $MARKPATH/$1
}
function unmark {
rm -i $MARKPATH/$1
}
@esundahl
esundahl / config.js
Last active December 27, 2015 14:49 — forked from tj/config.js
#javascript #node.js
/**
* Module dependencies.
*/
var pkg = require('../package');
var env = process.env.NODE_ENV || 'development';
/**
* Return setting `name`.
*