Giter Site home page Giter Site logo

traintracks's Introduction

traintracks

Punch card for tracking times when a train passes by the office.

I recently moved to a new office building sandwiched between a busy intersection and some train tracks. I want to find a pattern for when the train comes by, and no schedule is available (it's not a passenger train). It occurred to me to leverage github's punchcard graph to visualize this data. Whenever I hear the train come by, I'll just run punch.sh, which will log the current time to punchcard.txt and commit it with the same timestamp.

Examples

By default, punch.sh uses the current timestamp returned from date.

$ ./punch.sh
[master 84682a7] Fri Jan 16 10:14:55 CST 2015
 1 file changed, 1 insertion(+)

But you can specify anything that date can parse.

$ ./punch.sh "1/15 13:42"
[master a05d944] Thu Jan 15 13:42:00 CST 2015
 1 file changed, 1 insertion(+)

$ ./punch.sh 3:14pm
[master 5bacaaa] Fri Jan 16 15:14:00 CST 2015
 1 file changed, 1 insertion(+)

$ ./punch.sh 9
[master 3e9cb8c] Fri Jan 16 09:00:00 CST 2015
 1 file changed, 1 insertion(+) 

Reusability

There's nothing train-specific about this code. Fork the initial commit and you'll have a fresh punch card to track whatever you like!

traintracks's People

Contributors

vandor avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.