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/ruby | |
require 'digest' | |
require 'fileutils' | |
def paths | |
directories.map { |d| Dir.glob("#{d}/**/*") }.flatten.select { |p| File.file?(p) } | |
end | |
def directories |
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
export PS1='\u@\h:\W$(__git_ps1 "[%s]") > ' |
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
# When I post the following to /api/send_money: | |
# | Recipient | Sebastian | | |
# | Amount | 7777 | | |
When /^I post the following to ([^:]+):$/ do |uri, fields| | |
# yes, i'd prefer to fold | |
params = {} | |
fields.rows_hash.each do |key, value| | |
params.merge!( { key => value } ) | |
end |