Skip to content

Instantly share code, notes, and snippets.

@jackolney
Created October 27, 2016 11:17
Show Gist options
  • Save jackolney/fa824e01e07983d7c978d74dde842bc7 to your computer and use it in GitHub Desktop.
Save jackolney/fa824e01e07983d7c978d74dde842bc7 to your computer and use it in GitHub Desktop.
Animated punchcard of repo over time
convert 01.png -gravity North -pointsize 20 -annotate +0+5 '05/01/16' 01-label.png
convert 02.png -gravity North -pointsize 20 -annotate +0+5 '15/01/16' 02-label.png
convert 03.png -gravity North -pointsize 20 -annotate +0+5 '01/02/16' 03-label.png
convert 04.png -gravity North -pointsize 20 -annotate +0+5 '15/02/16' 04-label.png
convert 05.png -gravity North -pointsize 20 -annotate +0+5 '01/03/16' 05-label.png
convert 06.png -gravity North -pointsize 20 -annotate +0+5 '15/03/16' 06-label.png
convert 07.png -gravity North -pointsize 20 -annotate +0+5 '01/04/16' 07-label.png
convert 08.png -gravity North -pointsize 20 -annotate +0+5 '15/04/16' 08-label.png
convert 09.png -gravity North -pointsize 20 -annotate +0+5 '01/05/16' 09-label.png
convert 10.png -gravity North -pointsize 20 -annotate +0+5 '15/05/16' 10-label.png
convert 11.png -gravity North -pointsize 20 -annotate +0+5 '01/06/16' 11-label.png
convert 12.png -gravity North -pointsize 20 -annotate +0+5 '15/06/16' 12-label.png
convert 13.png -gravity North -pointsize 20 -annotate +0+5 '01/07/16' 13-label.png
convert 14.png -gravity North -pointsize 20 -annotate +0+5 '15/07/16' 14-label.png
convert 15.png -gravity North -pointsize 20 -annotate +0+5 '01/08/16' 15-label.png
convert 16.png -gravity North -pointsize 20 -annotate +0+5 '15/08/16' 16-label.png
convert 17.png -gravity North -pointsize 20 -annotate +0+5 '01/09/16' 17-label.png
convert 18.png -gravity North -pointsize 20 -annotate +0+5 '15/09/16' 18-label.png
convert 19.png -gravity North -pointsize 20 -annotate +0+5 '01/10/16' 19-label.png
convert 20.png -gravity North -pointsize 20 -annotate +0+5 '15/10/16' 20-label.png
convert 21.png -gravity North -pointsize 20 -annotate +0+5 '25/10/16' 21-label.png
# January
git checkout `git rev-list -n 1 --before="2016-01-10 09:41" master`
git punchcard file="01.png"
git checkout `git rev-list -n 1 --before="2016-01-15 09:41" master`
git punchcard file="02.png"
# February
git checkout `git rev-list -n 1 --before="2016-02-1 09:41" master`
git punchcard file="03.png"
git checkout `git rev-list -n 1 --before="2016-02-15 09:41" master`
git punchcard file="04.png"
# March
git checkout `git rev-list -n 1 --before="2016-03-1 09:41" master`
git punchcard file="05.png"
git checkout `git rev-list -n 1 --before="2016-03-15 09:41" master`
git punchcard file="06.png"
# April
git checkout `git rev-list -n 1 --before="2016-04-1 09:41" master`
git punchcard file="07.png"
git checkout `git rev-list -n 1 --before="2016-04-15 09:41" master`
git punchcard file="08.png"
# May
git checkout `git rev-list -n 1 --before="2016-05-1 09:41" master`
git punchcard file="09.png"
git checkout `git rev-list -n 1 --before="2016-05-15 09:41" master`
git punchcard file="10.png"
# June
git checkout `git rev-list -n 1 --before="2016-06-1 09:41" master`
git punchcard file="11.png"
git checkout `git rev-list -n 1 --before="2016-06-15 09:41" master`
git punchcard file="12.png"
# July
git checkout `git rev-list -n 1 --before="2016-07-1 09:41" master`
git punchcard file="13.png"
git checkout `git rev-list -n 1 --before="2016-07-15 09:41" master`
git punchcard file="14.png"
# August
git checkout `git rev-list -n 1 --before="2016-08-1 09:41" master`
git punchcard file="15.png"
git checkout `git rev-list -n 1 --before="2016-08-15 09:41" master`
git punchcard file="16.png"
# September
git checkout `git rev-list -n 1 --before="2016-09-1 09:41" master`
git punchcard file="17.png"
git checkout `git rev-list -n 1 --before="2016-09-15 09:41" master`
git punchcard file="18.png"
# October
git checkout `git rev-list -n 1 --before="2016-10-1 09:41" master`
git punchcard file="19.png"
git checkout `git rev-list -n 1 --before="2016-10-15 09:41" master`
git punchcard file="20.png"
git checkout `git rev-list -n 1 --before="2016-10-25 09:41" master`
git punchcard file="21.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment