After previous post about Blogger posting punchcard, I got an idea while replying to an issue: why not just reading the .bash_history in web browser and use JavaScript library to render the punchcard graph?

So, here comes the post.

I only test it on Firefox and I am certain it will not work on IE9-, maybe even IE9. Don’t give a frak about it when I was using some array functions.

I think a date range selector would be nice, but I can’t find a simple plugin and I was too lazy to even just use two input boxes for manual input.

If you want to hack the code, leave me a message, I will put it up on GitHub + Pages.

1   Screenshot

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC9jt-Hx7-v530QRpso1yH3N-F-ehxZjKj7xtDpgBR2ORXO7RrzJSaF3f1wuq_wXx886lWxd3aNRCTKyQcSgOsAd-xRVqcbPlOfiqyPID_WXA84V-i0kPQstz1BfeE7kplY_95d82st6U/s800/Punchcard%2520using%2520d3.js%25202013-06-07--12%253A05%253A10.png

2   Try it out

Load your ~/.bash_history or a file of timestamp list, or click the buttons for random timestamps.

Unix times: