GithubHelp home page GithubHelp logo

juanvera11127 / dharma_quotes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evie-skinner18/dharma_quotes

0.0 0.0 0.0 73 KB

A library of quotes from Buddhist texts, all wrapped up in a Ruby gem <3

License: MIT License

Ruby 100.00%

dharma_quotes's Introduction

Dharma Quotes 1.1.0

Happy Hacktoberfest everyone! I will push a new release of the gem on rubygems.org at the beginning of November (so all your contributions can go in the new version) ๐Ÿ‘ป ๐Ÿ’€ ๐Ÿ”ฅ

Well namaste, it's the Ruby library of Dharma quotes! โค๏ธ

New in this version:

  • Functionality to get random quotes from the one and only Pema Chodron
  • More unit tests added
  • Contributing instructions added

How to Install

In your command line, run the following command:

gem install dharma_quotes

Usage

You can start using dharma_quotes with just a few lines of Ruby. In your Ruby file, type the following:

require 'dharma_quotes'

dharma_quotes = DharmaQuotes.new
random_quote = dharma_quotes.get_quote
puts random_quote

It's going to give you a quote for example:

Animosity does not eradicate animosity. 
Only by loving kindness is animosity dissolved. 
This law is ancient and eternal. - The Dhammapada'

You can be more specific too if you like! Ask for a quote from the Dhammapada; a quote from a miscellaneous source; or another option detailed below.

dhammapada_quote = dharma_quotes.get_dhammapada_quote
misc_quote = dharma_quotes.get_quote_from_other_texts
noble_truth = dharma_quotes.get_noble_truth
part_of_noble_eightfold_path = dharma_quotes.get_part_of_eightfold_path
pema_chodron_quote = dharma_quotes.get_pema_chodron_quote

From command line

$> quote

Contributing

See 'CONTRIBUTING.md' for instructions.

Enjoy life!

dharma_quotes's People

Contributors

evie-skinner18 avatar bdmcewen avatar gagangupta19 avatar delbetu 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.