Skip to content

Instantly share code, notes, and snippets.

@zef
zef / bb.rb
Created November 11, 2014 04:57 — forked from jerodsanto/bb.rb
#!/usr/bin/env ruby
if remote = `git remote -v`.lines.find { |l| l.match /bitbucket/ }
matches = remote.match /(?<domain>bitbucket.org).(?<path>.*)\.git/
url = "https://#{matches[:domain]}/#{matches[:path]}"
branch = `git symbolic-ref --short HEAD`.lines.first
url += "/branch/#{branch}"
system "open #{url}"
@zef
zef / jquery.spin.coffee
Created June 26, 2012 20:33 — forked from innotekservices/jquery.spin.js
jQuery Plugin for Spin.js (Coffescript)
# A jQuery Wrapper around spin.js
# Has sane defaults and uses the color attribute of the target selector
#
# http://fgnass.github.com/spin.js/
#
# preset_name - size of spinner: 'small' or 'large'
# customizations - any option from spin.js
#
# Examples:
#