Skip to content

Instantly share code, notes, and snippets.

View hypomodern's full-sized avatar

Matt Wilson hypomodern

View GitHub Profile
#!/bin/bash
set -exo pipefail
BUILD_ENV=$1
if [ `uname` == 'Darwin' ]; then
OSX=1
JSCOMPRESSOR="yuicompressor --type js"
else
OSX=

Keybase proof

I hereby claim:

  • I am hypomodern on github.
  • I am hypomodern (https://keybase.io/hypomodern) on keybase.
  • I have a public key whose fingerprint is 546D D3C6 B046 667D 241C 89DF EBF8 C277 6FF1 854B

To claim this, I am signing this object:

{
init: function(elevators, floors) {
elevators.forEach(function(elevator) {
elevator.floorIsDestination = function(floorNum) {
return elevator.destinationQueue.indexOf(floorNum) != -1;
}
elevator.on("floor_button_pressed", function(floorNum) {
if (!elevator.floorIsDestination(floorNum)) {
elevator.goToFloor(floorNum);