Coder Social home page Coder Social logo

pikatock's Introduction

PIKATOCK

Tiny time tracking

Master branch build status

What is this?

Keep a plain text log file like so:

2016-08-22
0900-0930 warm up : waving the arms
0930-1030 warm up : waving the legs
1230-1700 rest of the day : not doing the work
1700-1730 rest of the day : maybe do a little bit of work

And then get a nice summed up tree of times as output:

6.5
    5.0 rest of the day
        4.5 not doing the work
        0.5 maybe do a little bit of work
    1.5 warm up
        1.0 waving the legs
        0.5 waving the arms

Skip the repeated bits

The previous log can also be written:

2016-08-22
0900-0930 warm up : waving the arms
    -1030         : waving the legs
1230-1700 rest of the day : not doing the work
    -1730                 : maybe do a little bit of work

and the missing elements will be filled from the previous line.

Building

cabal build should do it.

Usage

Use me with an input file like this:

pikatock input.time

To do

  • A new flag --exclude to exclude certain tree elements.
  • A new flag --depth to only print to a certain depth.
  • A new flag --daily to print a set of days individually.
  • Support for passing in multiple time files and also directories to scan recursively.

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.