I hereby claim:
- I am edeustace on github.
- I am edeustace (https://keybase.io/edeustace) on keybase.
- I have a public key whose fingerprint is 32B8 0A46 3D10 03D7 E9D0 B392 7CBF 23E5 4B33 1B9A
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/usr/bin/env ruby | |
list = `git branch --merged` | |
clean = list.split("\n").map{ |k| k.chomp }.delete_if{ |k| k.include? "*" } | |
clean.each{ |b| | |
puts "deleting #{b}" | |
`git branch -D #{b}` | |
} |
require 'openssl' | |
### | |
# An implementation of the AES encryption spec | |
# see: http://www.corespring.org/developer/home#encrypting-player-options | |
### | |
class EncryptionHelper | |
Type = "AES-128-CBC" | |
#!/bin/bash | |
# Oracle hasn't updated the Java 1.7u65 installer to support Yosemite, | |
# so here's a way to get it installed. | |
# This is actually what I used to get IntelliJ IDEA running, but even | |
# if you aren't running that IDE, this is a quick script to get Java | |
# going strong on your fresh install of OS X 10.10 | |
# Install Java 6 for OS X |
I hereby claim:
To claim this, I am signing this object:
//A trait with a function 'do' | |
trait Thingy { | |
def do : String | |
} | |
//A global object that implements Thingy | |
object Thingy extends Thingy{ | |
def do = "thing" | |
} |
var h = require('virtual-dom/h'); | |
var diff = require('virtual-dom/diff'); | |
var patch = require('virtual-dom/patch'); | |
var createElement = require('virtual-dom/create-element'); | |
// 1: Create a function that declares what the DOM should look like | |
function render(count) { | |
return h('div', { | |
style: { | |
textAlign: 'center', |
// example using the raf module from npm. try changing some values! | |
var requestAnimationFrame = require("raf") | |
var canvas = document.createElement("canvas") | |
canvas.width = 500 | |
canvas.height = 500 | |
document.body.appendChild(canvas) | |
var context = canvas.getContext("2d") |