My response to Spark: Visualize your mercurial commit history from commandline

标题长了些。还是用母语吧。

昨天HackerNews上一个小脚本轰动了,所谓山不在高程序不在小。为了响应这个小脚本,我写了一个更加简单的Mercurial(hg)扩展,帮助你输出hg仓库的提交历史。这个feature和github的直方图有点像,在我看来github的直方图是他们最重要的feature之一,它鞭策着你不断地commit。

hg summary

安装:将这个脚本放在任意一处,在你的hgrc中添加:

[extensions]
summary = /path/to/your/script

由于很简单,就不按照mercurial的规范发布了。

Clojalk SCM Visualization

最近有一个小工具非常流行(如果我没有火星的话),gource,可以将你的代码历史可视化出来。这里有reddit的代码历史,fogus也把写the joy of clojure做成了这样的视频。

凑个热闹,来看看我的clojalk项目可视化

And the video link on vimeo.

除了一名contributor,只有一个commiter。又是一幕Forever alone。
forever alone

PS:
gource上的wiki里,ffmpeg如果报错File for preset ‘slow’ not found的话,去掉ffmpeg的-vpre slow就OK了。

Visualize Reddit upvotes by subreddit

这是我reddit上所有的upvote在各个subreddit上的分布情况,这个情况还是可以说明我是个普通青年。
Reddit upvotes visualization

排在前几位的分别是

  • Programming
  • Linux
  • Python
  • f7u12
  • Clojure
  • Ubuntu

如果你还不了解什么是Reddit:Reddit是一个巨大的社会书签+论坛网站,他的频道叫做subreddit,每个频道有一个相应的主题,涵盖了从IT技术到新闻到生活的各个角落。

这些数据是通过下面的Clojure程序获得(使用reddit.clj库),并通过jfreechart展现出来的。

The distribution of intelligence

This could be a big title for the content.

I just work out a heat map based on the data of users who enrolled online courses offered by Stanford.


(Click to enlarge)

I think you already have your ideas about this map. New England, California and Central Europe has higher density than any other area of the world. Also you can find some light in South America, East Coast Australia, India and China. I think this could be an overview of how intelligence distributed around the globe.