I hereby claim:
- I am appleton on github.
- I am appltn (https://keybase.io/appltn) on keybase.
- I have a public key whose fingerprint is 5C33 F217 E61F F737 CE04 50E8 E464 B0E0 241C 31E4
To claim this, I am signing this object:
const black = '#272c33' | |
const red = '#e06b74' | |
const green = '#98c378' | |
const yellow = '#e5c07a' | |
const blue = '#60aeee' | |
const magenta = '#c677dc' | |
const cyan = '#56b6c1' | |
const white = '#abb1bf' | |
const lightBlack = '#31353f' | |
const lightRed = '#f97782' |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// Choose either "stable" for receiving highly polished, | |
// or "canary" for less polished but more frequent updates | |
updateChannel: 'stable', |
I hereby claim:
To claim this, I am signing this object:
#... | |
after_transition do |parent, transition| | |
parent.state = transition.to_state | |
parent.save! | |
end | |
#... |
function pngquant_dir() { | |
if (( $+commands[pngquant] )); then | |
# Using 1000 here because OSX does so this gives consistent results | |
bytes_per_kb=1000 | |
total_saved=0 | |
for file in **/*.png; do | |
before_size=`wc -c < $file` | |
before_size=$(($before_size / $bytes_per_kb)) |
require 'pty' | |
CONFIG = { | |
:remote => { | |
:host => 'my.ssh-host.com', | |
:user => 'my-ssh-username', | |
:path => 'path-to/site/root' | |
}, | |
:posts => 'local/posts/directory' | |
} |
Handlebars.registerHelper 'if_equal', (val1, val2, fn) -> | |
if val1 == val2 | |
return fn() | |
else if fn.inverse | |
return fn.inverse() |
var canvas = document.getElementsByTagName('canvas'), | |
img = new Image(); | |
img.onload = function(){ | |
Array.prototype.slice.call(canvas).forEach(function(el){ | |
el.getContext('2d').drawImage(img, 0, 0); | |
}); | |
}; | |
img.src = 'http://thegurglingcod.typepad.com/.a/6a00d8341c387d53ef0148c84decb8970c-320wi'; |
var http = require('http'), | |
fs = require('fs'); | |
http.createServer(function(req, res){ | |
var path = (req.url === '/' ? './index.html' : '.' + req.url); | |
fs.readFile(path, 'utf-8', function(err, data){ | |
if(!err){ | |
console.log('Serving: ', req.url); | |
res.writeHead(200); | |
res.end(data); |
Right now, this assumes you are using Snow Leopard.
Homebrew is MacPorts (or APT) without the suck. http://github.com/mxcl/homebrew