GithubHelp home page GithubHelp logo

ola's Introduction

ola

CLI tool to generate quotes said by Professor Astrachan.

screenshot of tool

Installation

Requirements:

  • Must have Python 2 installed
  • /usr/local/bin must be on the path
  • /usr/bin must be on the path
  • Python 2's executable must be at /usr/bin/python

Installing on MacOS or Linux:

To install, run the following commands:

git clone https://github.com/vasilescur/ola.git
cd ola
chmod +x ./install.sh
sudo ./install.sh

You may then delete the ola folder into which you cloned the repo.

Installing on Windows

Clone or download the repository.

Rename the ola file to ola.py.

Usage

MacOS or Linux:

To use, simply run:

ola

If you want to use a different quotes source file, pass the path as an argument:

ola my_other_quotes.txt

Quote files are formatted as one quote per line.

You can also pipe output to other programs. For example:

ola | cowsay

The quotes file may be configured. It is stored at /etc/ola/quotes.txt.

Windows

At the command line, run python ola.py from the repo's folder.

Note: Not tested, but this might break the ability to pass custom files as arguments (or might break the whole thing). If this is the case, maybe try find a fix by editing the sys.argsv section of the code.

But why Python 2?

My Python 3 installation is a bit funky, so I decided to use Python 2 for more easy cross-platform support.

If you'd prefer to use Python 3, here's how:

  • In the main program (ola file), change print message to print(message)
  • Change the shebang line at the top of the file to point to your Python 3 executable

Contributing

Pull requests are welcome. Please submit an issue if any bugs are encountered.

Credit

Created by Radu Vasilescu.

Many of the quotes are sourced from here: ola Quotes from CS 101

Others are added by me.

License

MIT license. See LICENSE file.

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.