Giter Club home page Giter Club logo

generate_life_calendar's Introduction

Personalised Life Calendar Generator

I'm a fan of the Life Calendars that can be found on Tim Urban's website www.waitbutwhy.com. It's basically a calendar for your whole life on a single poster, with a single box representing a week, a single row represrenting a year (52 boxes), and 90 rows for a total of 90 years.

I liked having it on my wall, and for a while I tried using it to mark significant past events, as well as future goals & plans. There are a couple of practical problems with this, however, because of the current design of the Life Calendars. The main problem is that there are no real date references on the poster, unless you write them in yourself, so honing in on a specific box (say, the week you're currently in right now) is tedious and error-prone.

The reason for this is obvious; the dates shown would be specific to your own birthday, so you can't make one poster for everybody if there are dates on it. The minimalist design of the poster kind of compensates for this, since you are left with plenty of room to write/draw whatever you want. Fair enough.

I'm lazy, though. I don't want to write all those dates in. Plus, if I lose or damage the poster, I'd have to do all that work again. So I did this instead.

This script takes your birthday as an argument, and generates a .pdf file containing a life calendar annotated with your personal dates. (Document size is 29x40 inches, for best printing results)

Several additional features make navigation through the calendar a bit easier;

  1. Rather than just starting exactly on your birthday, it starts on the last Monday before your birthday (i.e. the first day of the week you were born). This makes it much easier to identify which box holds a particular date, since every box starts with a Monday and represents "the week starting on <date>"
  2. For each row, the date of the first day of the first box in the row is printed on the right hand side. This date is always a Monday, as explained in #1.
  3. Boxes containing your birthday are shaded
  4. Boxes containing the first day of the year are shaded (a different shade)

Installation

Dependencies

You must install the following dependencies before you can generate a Life Calendar:

  • PyCairo (Python library for drawing stuff & generating documents/images)

    Install from the link above, or if you're running something like Debian/Ubuntu I'll save you some time, sudo apt-get install python-cairo

Download

It's just a single python script, no fancy installation. Just clone this repo to get the script

$> git clone https://github.com/eriknyquist/generate_life_calendar

Usage

After cloning this repo, just run the script, passing in your birth date (format can be either dd-mm-yyyy or dd/mm/yyyy)

$> cd generate_life_calendar
$> python generate_life_calendar.py "23/10/1990"

Created life_calendar.pdf

By default, the output will be a file called life_calendar.pdf. You can change the output filename with the -f option

$> python generate_life_calendar.py "23/10/1990" -f my_life_calendar.pdf

Created my_life_calendar.pdf

Configuration

CRITICAL_AGE : This is used to set a specific color upto a certain important event in your life in the future. e.g. 35 is the age I want to be financially free after.

PAST_COLOR : To color days already in the past.

BEFORE_CA_COLOR : To color days differently upto your milestone age.

generate_life_calendar's People

Contributors

eriknyquist avatar dragarok avatar alokehpdev avatar self-perfection 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.