This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NorfolkJS 2014 | |
*/ | |
var _ = require("underscore"), | |
assert = require("chai").assert; | |
function isLeftHanded(w) { | |
var h=['q','w','e','r','t','a','s','d','f','z','x','c','v'], | |
s=w.toLowerCase().split(''), | |
x=1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl-cl () { | |
local cl=$(curl -sI $1 | grep "Content-Length" | cut -d " " -f2) | |
echo $cl | ruby -r 'action_pack' -e 'require "action_view" ; include ActionView::Helpers::NumberHelper ; puts number_to_human_size(STDIN.read.strip, precision:2, separator:",")' | |
} |