GithubHelp home page GithubHelp logo

hab's Introduction

HAB

Make yourself a better person.

(Pending a better name.)

Master branch build status

What is this?

A real life game for tracking habits. Completely inspired by Habitica.

You outline some habits you'd like to enforce or discourage and then tick them off as you do them.

As you progress you get a status report on your character, for example:

Character is level 1 with 2/10 experience and 49 health.
Experience:    [xxxxxxxx--------------------------------]
Health:        [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-]

How do I specify habits?

Write a file at ~/habit.log and enter some lines like the following:

2017-01-01 0000 h mindless-internet-use        -1
2017-01-01 0000 h work-on-programming-project   1
2017-01-01 0000 p gym 4d 3

This log creates 3 new habits:

  1. mindless-internet-use is a negative habit for which you lose a single unit of health.
  2. work-on-programming-project is a positive habit for which you gain a point of experience.
  3. gym is a "periodic habit". If you complete it within 4 days you gain 3 experience points, but if you don't complete it within 4 days you lose 3 points of health.

(The format is a bit rubbish and needs some improvement. The timestamp lets you add habits and change them as you go along.)

How do I tick off habits?

Tick them off using the hab command:

$ hab mindless
1 item(s) checked off
Lif: -

(You can refer to the habit's full name using just a substring. In this case, "mindless" will match against "mindless-internet-use")

How do I install it?

If you have Stack, then:

$ stack install

hab's People

Contributors

scolej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.