Force yourself to find the weekday of a random date every time you open your terminal
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE.md
README.md
main.py

README.md

Doomsday trainer on bash startup

Force yourself to find the weekday of a random date every time you open your terminal

Table of contents

Demo

Expect something like this to happen every time you open your terminal:

2016-01-07: 1
Incorrect. Correct answer: 4

2018-03-06: 2
Correct! Time: 7.01 s

yourprompt: ~$

(You'll get your prompt back on your first success).

You can also train more intensively by typing dm:

yourprompt: ~$ dm
Enter q to quit.

1946-07-08: 1
Correct! Time: 18.47 s

2018-10-18: 4
Correct! Time: 4.63 s

Requirements

  • Linux
  • Python 3

Installation

  1. Go to your desired installation path: cd your/path
  2. Clone the repo: git clone https://github.com/timotheechauvin/doomsday-on-bash-startup
  3. Go to the end of your ~/.bashrc file
  4. Add the following lines at the end:
alias dm='your/path/doomsday-on-bash-startup/main.py loop'
python your/path/doomsday-on-bash-startup/main.py

Usage

If you're really in a hurry, you can press Ctrl + C to kill the process and get back your prompt.

Contributing

Issues, feedback and pull requests are all warmly welcome!

Acknowledgements

A significant part of this code is heavily inspired from https://github.com/sguichard/doomsday_trainer.

License

This project is under the MIT license.