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
alias last_change='git diff $(git status | sed -ne "/Changed/,/Untrack/ p" | grep modified | cut -d: -f2 | head -1)' | |
alias add_last_change='git add $(git status | sed -ne "/Changed/,/Untrack/ p" | grep modified | cut -d: -f2 | head -1)' | |
alias edit_last_change='$EDITOR $(git status | sed -ne "/Changed/,/Untrack/ p" | grep modified | cut -d: -f2 | head -1)' |
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 'set' | |
file = File.new("data") | |
storage = Hash.new {} | |
file.each_line do |line| | |
date, key, value = line.split(';') | |
storage[date][key] = value | |
end |
NewerOlder