Moved to https://github.com/dkubb/git-tools
This file contains 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
# frozen_string_literal: true | |
require 'anima' | |
require 'set' | |
require 'thread' | |
# Actions class to process actions in parallel | |
class Actions | |
# Action class to store action details |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am dkubb on github. | |
* I am dkubb (https://keybase.io/dkubb) on keybase. | |
* I have a public key ASABdYDarQ43GiNGY274zzSheBhF9a6SCfzdVInw3nb_ogo | |
To claim this, I am signing this object: |
This file contains 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
require 'bigdecimal' | |
require 'bigdecimal/util' | |
require 'rubygems' | |
require 'adamantium' | |
require 'concord' | |
class Money | |
include Adamantium, Concord.new(:amount), Comparable |
This file contains 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
module EnumerableExtensions | |
# An exception raised when an invalid number of entries is returned | |
class InvalidCountError < StandardError | |
# Initialize an exception to report an invalid enumerable count | |
# | |
# @param expectation [String] | |
# @param entries [Array] | |
# |
This file contains 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 | |
require 'filemagic' | |
require 'pathname' | |
require 'parser/current' | |
require 'unparser' | |
RUBY_TYPE = 'ruby script'.freeze | |
# TODO: handle stdin |
This file contains 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
*.hi | |
*.o | |
*.sw[op] | |
/.shake | |
/.stack-work | |
/dist | |
/output |
This file contains 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
dkubb [12:34 PM] | |
I feel solnic’s pain in trying to swim against the current | |
dkubb [12:44 PM] | |
https://twitter.com/dkubb/status/608359066172313600 | |
Dan Kubb@dkubb | |
.@rubyfive @_solnic_ has done great things for ruby, and your dismissive tone to his valid criticism only hurts the community. | |
Today at 12:44 PM | |
mbj [12:47 PM] |
This file contains 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/ruby | |
require 'rubygems' | |
require 'mechanize' | |
require 'addressable/uri' | |
ROOT_URL = Addressable::URI.parse(ARGV.fetch(0)).freeze | |
# Disable SSL certificate verification | |
I_KNOW_THAT_OPENSSL_VERIFY_PEER_EQUALS_VERIFY_NONE_IS_WRONG = nil |
This file contains 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
# Upgrade, Update, Check Homebrew | |
update | |
upgrade | |
doctor | |
# Install taps | |
tap caskroom/cask | |
tap sceaga/tap | |
# Install bash |
NewerOlder