I hereby claim:
- I am dgraham on github.
- I am dgraham (https://keybase.io/dgraham) on keybase.
- I have a public key whose fingerprint is 87B9 DDE7 41E3 D8B8 0DC7 F2E4 AA94 05DC E2E0 D208
To claim this, I am signing this object:
module EventMachine | |
class PriorityQueue < Queue | |
def initialize(&comparator) | |
super | |
@items = Items.new(comparator) | |
end | |
class Items | |
def initialize(comparator) | |
require 'rbtree' |
#!/usr/bin/env ruby | |
require 'fiber' | |
# A resumable, recursive descent JSON parser, using Fibers. | |
# http://www.negativecode.com/posts/2012/03/26/fibers-resumable-recursive-descent-json-parsing/ | |
class Parser | |
Result = Struct.new(:value) | |
def initialize |
require 'minitest/spec' | |
require 'minitest/autorun' | |
require 'set' | |
class Schemas | |
def initialize | |
@schemas = Set.new | |
end | |
def <<(hash) |
git clone https://github.com/sstephenson/ruby-build.git | |
cd ruby-build | |
sudo ./install.sh | |
sudo ruby-build 2.0.0-p247 /usr/local | |
cd .. && rm -rf ruby-build |
I hereby claim:
To claim this, I am signing this object:
// $ traceur --experimental --out template-es6.js template.js | |
function escape(text) { | |
let el = document.createElement('p') | |
el.textContent = text | |
return el.innerHTML | |
} | |
function node(html) { | |
let parser = new DOMParser() |
(function() { | |
function status(response) { | |
if (response.ok) { | |
return response | |
} else { | |
var error = new Error(response.statusText || response.status) | |
error.response = response | |
throw error | |
} | |
} |
(function() { | |
function hashchange() { | |
if (!location.hash) { | |
return; | |
} | |
// Don't do anything if the current target exists. | |
if (document.querySelector(":target")) { | |
return; | |
} | |
var name = "user-content-" + decodeURIComponent(location.hash.slice(1)); |
if [ $# -ne 1 ]; then | |
echo "Usage: make-icns icon.png" | |
exit 1 | |
fi | |
IMAGE=$1 | |
OUT=`basename ${IMAGE%\.*}`.iconset | |
mkdir $OUT | |
sizes=(16 32 128 256 512) |
(function() { | |
function createNode(text) { | |
var node = document.createElement('pre'); | |
node.style.width = '1px'; | |
node.style.height = '1px'; | |
node.style.position = 'fixed'; | |
node.style.top = '5px'; | |
node.textContent = text; | |
return node; | |
} |