Have you seen the “punchcard” graphics on any Github project? I wanted that, but in my terminal emulator.
I wrote a Go program that reads dates on
stdin and prints one of these nice
2D histograms. Then to get the git repository view I use
git log to pipe
commit dates to
Separating the presentation from the data source in this way makes it easy to
go-punchcard for visualizing my coffee consumption.
Given that you have the Go distribution installed and
go get antiklimax.se/go-punchcard echo 'git log --pretty=format:%cd | go-punchcard' > ~/bin/git-punchcard chmod +x ~/bin/git-punchcard
go-punchcard program isn’t really limited to being used together with
git. It expects to find one or two dates on each line of standard input. The
expected time format can be tweaked by usage of the