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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>ilya.track_sleep</string> | |
<key>Program</key> | |
<string>/Users/sa/track_sleep.rb</string> | |
<key>WorkingDirectory</key> | |
<string>/Users/sa</string> |
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
commit = ARGV[0] | |
master = ARGV[1] || 'origin/master' | |
unless commit | |
puts "Usage: find-commit.rb commit [master-branch]" | |
puts "Will show commit that merged <commit> into <master-branch>" | |
exit 1 | |
end | |
parents = `git rev-list #{commit}..#{master} --reverse --first-parent --merges`.split("\n") |
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
# Adds deep_freeze! method to Hash | |
Hash.class_eval do | |
def deep_freeze! | |
each_value{|val| val.deep_freeze! if val.respond_to?(:deep_freeze!) } | |
freeze | |
end | |
end | |
# Adds deep_freeze! method to Array | |
Array.class_eval do |
NewerOlder