Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mjswensen on github.
  • I am mjswensen (https://keybase.io/mjswensen) on keybase.
  • I have a public key whose fingerprint is 39E5 6D6F 3960 DE37 2910 D34C 3F9E 482B FC52 6F35

To claim this, I am signing this object:

@mjswensen
mjswensen / color-distribution-calculator.js
Last active April 1, 2017 19:41
Quick node script for calculating an even distribution between two given colors.
#!/usr/bin/env node
const dark = process.argv[2];
const light = process.argv[3];
const count = parseInt(process.argv[4], 10) + 1;
const matcher = /#?([\w]{2})([\w]{2})([\w]{2})/;
const darkParsed = matcher.exec(dark);
const darkR = parseInt(darkParsed[1], 16);
@mjswensen
mjswensen / .tmux.conf
Created August 9, 2014 23:11
Friendlier, Tab-style tmux Status Bar
set-window-option -g status-left " #S "
set-window-option -g status-left-fg black
set-window-option -g status-left-bg white
set-window-option -g status-right " %H:%M %d-%b-%y "
set-window-option -g status-right-fg black
set-window-option -g status-right-bg white
set-window-option -g window-status-format " #I: #W "
@mjswensen
mjswensen / Sass Reset
Created August 22, 2013 02:54
Eric Meyer's CSS Reset (v2.0) using Sass syntax.
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,