GithubHelp home page GithubHelp logo

dpapathanasiou / zen-thought Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 7 KB

This is a zen thought-of-the-day aphorism application based on the daily paper calendar by JoTaiga, and modeled after the old unix fortune application.

License: MIT License

C 73.49% Makefile 26.51%

zen-thought's Introduction

zen-thought

About

This is a zen thought-of-the-day aphorism application based on the daily paper calendar by JoTaiga, and modeled after the old unix fortune application.

Installation

Clone this repo, and use make:

$ git clone https://github.com/dpapathanasiou/zen-thought.git
$ cd zen-thought
$ make all
$ sudo make install

Once installed, it should be accessible from any command line terminal:

$ which zen-thought
/usr/local/bin/zen-thought
$ zen-thought

28th

いえいえ
あなたがいてくれたお陰です
本当にありがとう

No, no I'm very indebted to you
Because of you, I am here
Thank you very much

Optionally, add these lines to your /.bashrc file (Mac OSX users edit /.bash_profile instead), so that the aphorism appears automatically every time you start a terminal session:

if [ -x /usr/local/bin/zen-thought ]; then
    /usr/local/bin/zen-thought
fi

Font Support

If your computer does not have any Japanese fonts, download and install the Open IPA fonts, either "IPAex Mincho", "IPAex Gothic", or both.

Customization

Using Your Own Aphorisms File

When run, the application looks for a command line parameter corresponding to a text file.

If none is provided, it uses for the jotaiga-aphorisms.txt file installed to the $(DATADIR) defined in the Makefile.

To create your own, prepare a text file 31 lines in length, one for each day of the month, with no single line larger than 1,024 bytes in size.

The line number corresponds to the day of the month: i.e., the first line of the file is the saying for the 1st of the month, etc.

Any pipe characters (|) in the text get converted to carriage returns in the output displayed to stdout (this is a shortcut for enabling multiple lines per aphorism while keeping the source data compact).

The Devil's Dictionary by Ambrose Bierce has always been a favorite alternative to the traditional fortunes and quotes.

Editing the Existing Aphorisms

You can also just edit the existing jotaiga-aphorisms.txt file before installing (it was transcribed as faithfully as possible from the original paper version, but please send pull requests to fix any typos).

Acknowledgements

zen-thought's People

Contributors

dpapathanasiou avatar

Stargazers

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