Skip to content

Instantly share code, notes, and snippets.

View yale's full-sized avatar
☺️
Happy

Yale Rosenberg yale

☺️
Happy
View GitHub Profile
@yale
yale / machine.js
Created December 31, 2019 16:41
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@yale
yale / gist:a2c3febd8e374e72b103
Created September 25, 2014 04:18
keybase.md

Keybase proof

I hereby claim:

  • I am yale on github.
  • I am yale (https://keybase.io/yale) on keybase.
  • I have a public key whose fingerprint is 6E6C 32A9 5BF2 EDD4 EF5C B784 9EEF A8B0 F22C ECF5

To claim this, I am signing this object:

@yale
yale / gist:83a0e0ba39dca56bf47f
Created June 4, 2014 00:37
Abort commit to master if specs fail
#!/bin/sh
branch=`git rev-parse --abbrev-ref HEAD`
if [ $branch == 'master' ]; then
exit_code=$(bundle exec rspec --fail-fast --out /dev/null --format progress > /dev/null 2>/dev/null )$?
if [ $exit_code -gt 0 ]
then echo "Did not Commit because of failing tests"
fi
exit $exit_code
* executing `production'
triggering start callbacks for `deploy'
* executing `multistage:ensure'
* executing `deploy'
triggering before callbacks for `deploy'
* executing `deploy:set_branch'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers