Coder Social home page Coder Social logo

avats-dev / motivate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mubaris/motivate

23.0 1.0 107.0 4.42 MB

:zap: motivate :zap: - A simple script to print random motivational quotes. Highly influenced by linux command fortune.

License: MIT License

Python 95.95% Shell 3.90% Batchfile 0.15%
easy json python python-script python-3 bash-scripting bash-script bashrc quotes quote-generator quote hacktoberfest hacktoberfest2020

motivate's Introduction

Motivate

Gitter

Motivate


A simple script to print random motivational quotes. Highly influenced by linux command fortune.


Motivate-new

As previous repo is not maintained now, but there are a lot of people who want to contribute, I've decided to fork and continue the project. This would be active and would be maintained by me. PRs are welcome ๐ŸŽ‰.

  • Feel free to open an issue for bugs or feature request.
  • Add more quotes referencing this issue.
  • Use the new gitter community to chat and communicate.

Thanks โค๏ธ


Features

  • Colored Output
  • Supports bash and zsh

Requirements

git
python 3x

Installation

Linux/MacOS

$ git clone https://github.com/avats-dev/motivate.git
$ cd motivate/motivate
$ sudo ./install.sh
$ source ~/.bashrc

zsh users should replace .bashrc with .zshrc.

If you have no root priviledge, install in this way:

$ git clone https://github.com/avats-dev/motivate.git
$ cd motivate
$ ln -s $PWD/motivate/motivate.py moti
$ ln -s $PWD/dummy.sh mmoti

$ export PATH=$PWD:$PATH
$ # echo 'export PATH=$PWD:$PATH' >> ~/.bashrc

Later you can run by calling moti (a single run) or mmoti (keep running until you break it). After doing so, I found that python 2.x is enough to run this script.

Windows

  • Make sure you have Python3 on your path.
  • Clone the repository git clone https://github.com/avats-dev/motivate.git.
  • Add the path to your local clone to your system path.
  • Run py -3 motivate.py from the command prompt.

Update Database

$ git clone https://github.com/avats-dev/motivate.git
$ cd motivate
$ ./UPDATE

Usage

$ motivate

"When something is important enough, you do it even if the odds are not in your favor."
		--Elon Musk

Contribution

The most popular way to contribute is adding new quotes. You do it by adding next JSON file in motivate/data/ directory. The rule is maximum 20 quotes and minimum 5 per file and a contributor can commit only one file.

IMPORTANT --> Name your file as your-github-username.json to avoid conflicts in case of consequent PRs. Thanks.

Before you submit your new JSON file, it is helpful to validate your file at this website to make sure it is formatted correctly.

Bug reports and new feature ideas are welcome, open a new issue.

You're also welcome to discuss the idea on Gitter Chat.

motivate's People

Contributors

adiagg2000 avatar antavelos avatar ashtsh avatar avats-dev avatar billhammond-dev avatar chamow97 avatar chironly avatar eazydev avatar fleaz avatar fullstackman avatar fuzzmz avatar jayant0jha avatar karuvally avatar lucyparry avatar lyupin avatar michellymenezes avatar missingbytes avatar mubaris avatar nupurgunwant avatar otazz avatar oyeyipo avatar savannahar68 avatar sesh22 avatar shwuup avatar spacemonkey1101 avatar sreyasrangaraju avatar stanjdev avatar swapniljha001 avatar toivomattila avatar ushirask avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

motivate's Issues

[BUG] 200.json should be in data

Describe the bug

200.json is in root

To Reproduce

  1. Look in root.

Expected behavior

200.json should appear in motivate/data/

Desktop (please complete the following information):

  • OS: Linux (Devuan)
  • Browser Palemoon
  • Version Latest

Additional context

Possible Solution

  • You want to solve it.

Problem with utf-8 file encoding

Describe the bug
While runing find_dupes.py encounterd error with file reading. Charmap codec can't decodes some characters.

To Reproduce
Steps to reproduce the behavior:

  1. Go to motivate/motivate/find:dupes.pc
  2. Run it
  3. See error: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2890: character maps to

Expected behavior
Read character.

Desktop (please complete the following information):

  • OS: Win 10
  • Version 2004

Additional context
Tried on multiple machines, same resault

Possible Solution
Add utf-8 support

  • You want to solve it.

HACKTOBERFEST 2020

Hacktoberfest 2020

Hacktoberfest 2020 ๐ŸŽ‰

So, the festive season for OPEN SOURCE is back guys and we are here to help you contribute (and grab the swags ๐ŸŽ‰ ).

๐Ÿ—ฃ Hacktoberfest encourages participation in the open source community, which grows bigger every year. Complete the 2020 challenge and earn a limited edition T-shirt.

๐Ÿ“ข Register here for Hacktoberfest and make four pull requests (PRs) between October 1st-31st to grab free SWAGS ๐Ÿ”ฅ.



GOAL

To help you contribute to OPEN SOURCE REALM.

WHAT YOU NEED TO DO

  • Go and open README.
  • Follow the steps there ๐Ÿš€ ๐ŸŽ‰.


Hacktoberfest2020


Failing Validation - 191.json

Internal quote used double quotes which was interpreted to break the string, rather than using single quotes.

"quote": "I enjoy almost everything. Yet I have some restless searcher in me. Why is there not a discovery in life? Something one can lay hands on and say, "This is it"? My depression is a harassed feeling. I'm looking: but that's not it - that's not it. What is it? And shall I die before I find it?",

[FEATURE] Add json lint test

Is your feature request related to a problem? Please describe.

What if json added is not properly linted?

Describe the solution you'd like

A github action to check on every push for json lint and py code style.

Describe alternatives you've considered

Atleast the json lint check. Py code check can be avoided for now.

Additional context

  • You want to work on this.

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.