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 xlymian on github. | |
* I am xlymian (https://keybase.io/xlymian) on keybase. | |
* I have a public key ASARPjpKsgNqnA6zWvF8TAKhm7oBWQiEtcQx25L7huhFXwo | |
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
git config heroku.remote heroku |
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
git config remote.heroku.push HEAD:master |
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 | |
# git_branch_prunable 0.1 - 2011-11-29 | |
# by Paul Mylchreest (paul.mylchreest@mac.com) | |
# | |
%x( git branch ).each_line do |branch| | |
branch.strip! | |
next if branch =~ /master|development|staging/ | |
cmd = "git log #{branch} -n 1 --pretty=oneline" | |
first_commit_line = %x( #{cmd} ) |
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 | |
# git_branch_prunable 0.1 - 2011-11-29 | |
# by Paul Mylchreest (paul.mylchreest@mac.com) | |
# | |
%x( git branch ).each_line do |branch| | |
branch.strip! | |
next if branch =~ /master|development|staging/ | |
cmd = "git log #{branch} -n 1 --pretty=oneline" | |
first_commit_line = %x( #{cmd} ) |
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
[paulmylchreest@Paul fib (master)]$ bundle exec rspec spec/* --format ChuckTestar | |
Yeeep | |
Your tests pass! | |
Nope! It's just Chuck Testa! | |
Failures: |
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 'benchmark' | |
require 'matrix' | |
class Array | |
def parallel_map(&block) | |
result = [] | |
# Creating a group to synchronize block execution. | |
group = Dispatch::Group.new | |
# We will access the `result` array from within this serial queue, | |
# as without a GIL we cannot assume array access to be thread-safe. |