Skip to content

Instantly share code, notes, and snippets.

View bhuga's full-sized avatar

Ben Lavender bhuga

View GitHub Profile
@bhuga
bhuga / git-pr
Created January 8, 2015 16:47
git pr command
#!/bin/sh
#/ Usage: git pr [<branch>]
#/ Open the pull request page for <branch>, or the current branch if not
#/ specified. Lands on the new pull request page when no PR exists yet.
#/ The branch must already be pushed
# Based on script from @rtomayko
set -e
# usage message
# Description:
# Words of wisdom from @pengwynn
#
# Commands:
# hubot wynn me
# hubot wynnage me
# hubot wynning
wynnsdom = [
"You'll find that most touchdowns are actually scored by utility infielders."
@bhuga
bhuga / bug.rb
Created November 13, 2017 17:32
is this a ruby bug or am i misunderstanding something? fails on 2.4.1p111
# without a default for x
def foo(x, keyword: :b)
puts x
puts keyword
end
foo({x: 1})
#{:x=>1}
#b