aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-11-16 10:07:31 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2011-11-16 10:07:31 -0500
commit32f289f40d9d6ee33f619c0016c0bc8cfb164c9e (patch)
tree6ebc7c3894678c348a4cc6bb34767b5646cbd09f
parentAdd install target. (diff)
downloadspark-32f289f40d9d6ee33f619c0016c0bc8cfb164c9e.tar.xz
spark-32f289f40d9d6ee33f619c0016c0bc8cfb164c9e.zip
Git example.
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index c4d81bd..22c63bc 100644
--- a/README.md
+++ b/README.md
@@ -22,5 +22,9 @@ Invoke help with `spark -h`.
Magnitude of earthquakes over 1.0 in the last 24 hours:
$ curl -s http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt | cut -d, -f9 | spark
- ▁▂▂▂▁▂▁▁▁▂▁▄▁▂▂▂▃▁▂▂▂▃▃▂▂▂▂▁▁▁▁▁▂▁▂▆▃▂▂▂▂▁▅▂▂▂▆▂▁▂▂▂▂▁▁▂▃▂▃▁▁▁▁▅▂▃▂▄▁▃▁▂▁▂▁▅▁▁▂▅▁▂▁▂▁▁▁▂▁▁▁▁▁▁▃▁▂▁
+ ▁▂▂▂▁▂▁▁▁▂▁▄▁▂▂▂▃▁▂▂▂▃▃▂▂▂▂▁▁▁▁▁▂▁▂▆▃▂▂▂▂▁▅▂▂▂▆▂▁▂▂▂▂▁▁▂▃▂▃▁▁▁▁▅▂▃▂▄▁▃▁▂▁▂▁▅▁▁▂▅▁▂▁▂▁▁▁▂▁▁▁▁▁▁▃▁▂
+Number of commits in a git repo per active day:
+
+ $ git log --pretty=format:%ai --reverse | cut -d' ' -f1 | uniq -c | awk '{print $1}' | spark
+ ▁▂▄▃▃▂▃▃▄▄▄▃▁▂▁▁▄▃█▃▂▂▅▄▄▃▂▄▃▇▄▂▄▁▁▂▅▂▂▁▂▁▂▂▄▅▃▂▃▂▂▂▂▄▂▂▁▄▂▁▂▂▃▂▂▂▁▂▂▂▄▂▃▃▆▅▂▂▄▅▃▁▂▁▁▂▁▂▂▄▁▁▂▃▂▂▄