This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
# |