Skip to content

Instantly share code, notes, and snippets.

View bento-n-box's full-sized avatar

Benton Rochester bento-n-box

View GitHub Profile
@bento-n-box
bento-n-box / gist:694981de8b248f7e001c4bebab5df6ed
Last active May 10, 2017 16:47
Open git pull request alias
function create_branch_pr {
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
remote=$(git config remote.origin.url | cut -d. -f1-2)
echo "$remote/compare/develop...$branch"
}
alias opr='open -a /Applications/Google\ Chrome.app $(create_branch_pr)'
@bento-n-box
bento-n-box / gist:9b5246d533fbd0a5145c
Created February 18, 2015 03:05
basic elevator game code 1-6
{
init: function(elevators, floors) {
// Create Queue System for People waiting
var floorQueue = [];
// Loop Through each elevator
// Bind Events to elevator
elevators.forEach(function(elevator) {
// When Elevators is idle