I hereby claim:
- I am josh-stevens on github.
- I am joshstevens (https://keybase.io/joshstevens) on keybase.
- I have a public key ASAE3Kf-wxBVJU1OnAi_FfQph91OvTG2C5Ex-53GxOC30go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| { | |
| init: function(elevators, floors) { | |
| elevators.forEach(elevator => { | |
| elevator.on('floor_button_pressed', (num) => { | |
| elevator.goToFloor(num); | |
| }); | |
| }); | |
| floorHandler = (floor) => { | |
| let closest, idle; |
| class Node { | |
| constructor(value, parent) { | |
| this.value = value; | |
| this.parent = parent || null; | |
| this.left = null; | |
| this.right = null; | |
| } | |
| insert(value) { | |
| if (value > this.value) { | |
| if (this.right === null) { |
| import React, { Component, Fragment } from 'react'; | |
| const chars = '!<>-_\\/[]{}-=+*^?#________'; | |
| class TextScramble extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.string = props.children; | |
| this.length = this.string.length; | |
| this.queue = []; |
| class Graph { | |
| constructor(numberOfVertices) { | |
| this.size = numberOfVertices; | |
| this.list = new Map(); | |
| } | |
| addVertex(v) { | |
| this.list.set(v, []); | |
| } | |
| addEdge(v, w) { | |
| this.list.get(v).push(w); |