Giter VIP home page Giter VIP logo

birthday-reminder's Introduction

The birthday reminder

Welcome to the terminal birthday reminder! Every time you open the terminal it lists every birthday that is in the next 14 days including how old the person turns. That comes in the following format:

"$NAME has birthday in $DAYS days"

And when the birthday finally rolls around:

"$NAME turns $AGE today!"

How it works

After running bin/setup a new directory called .birthday_reminder/. In there you will have a release/birthday-reminder. That's where the code lives.
The first time running it, it will ask you to initialize a ~/.birthday_reminder/birthdays.txt file. There you should choose y, otherwise the program doesn't work.

birthdays.txt

Inside the birthdays.txt you will need to add your birthdays. As of now there is no command-line tool, but that should come before version 1 is released. Currently birthdays are added as follows:

$NAME=$BIRTHDAY

Keep in mind, that $BIRTHDAY needs to be in yyyy.mm.dd format. Doing this wrong will cause the program to panic.

Performance

A fair concern is, how this will affect your performance. Running the time command yields following results on an m1 pro:

time ./release/birthday-reminder
No birthdays in the next 14 days!
./release/birthday-reminder  0.00s user 0.00s system 46% cpu 0.011 total

Should be fast enough.

birthday-reminder's People

Contributors

aneshodza avatar

Stargazers

 avatar  avatar

Watchers

 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.