Skip to content

Instantly share code, notes, and snippets.

@bessarabov
Created February 6, 2017 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessarabov/88606de6f1781baf534696a29a7b98e9 to your computer and use it in GitHub Desktop.
Save bessarabov/88606de6f1781baf534696a29a7b98e9 to your computer and use it in GitHub Desktop.
bessarabov@air:~/tmp/delete_after_2017-02-03/mojo$ git log --author="sri@cpan.org" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; say $m; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }'
502
00 - 446 ********************************************
01 - 403 ****************************************
02 - 344 **********************************
03 - 309 ******************************
04 - 274 ***************************
05 - 258 *************************
06 - 236 ***********************
07 - 154 ***************
08 - 102 **********
09 - 79 *******
10 - 109 **********
11 - 147 **************
12 - 167 ****************
13 - 205 ********************
14 - 275 ***************************
15 - 328 ********************************
16 - 393 ***************************************
17 - 460 *********************************************
18 - 502 **************************************************
19 - 448 ********************************************
20 - 457 *********************************************
21 - 433 *******************************************
22 - 484 ************************************************
23 - 446 ********************************************
0 1s
bessarabov@air:~/tmp/delete_after_2017-02-03/mojo$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment