mubaris / motivate Goto Github PK
View Code? Open in Web Editor NEW:zap: motivate :zap: - A simple script to print random motivational quotes. Highly influenced by linux command fortune.
License: MIT License
:zap: motivate :zap: - A simple script to print random motivational quotes. Highly influenced by linux command fortune.
License: MIT License
Traceback (most recent call last):
File "/Users/admin/.motivate/motivate", line 11, in
rand_no = random.randint(1, num_of_json)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/random.py", line 220, in randint
return self.randrange(a, b+1)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/random.py", line 198, in randrange
raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (1,1, 0)
Add a small script to automatically delete all the duplicate quotes in the data
folder.
Hi guys,
This repo is active? Because there is a lot of PR but no one releases them.
The install.sh and update scripts are missing from the repo
Software Specs:
Steps to Reproduce:
git clone https://github.com/mubaris/motivate.git
cd motivate
./UPDATE
Expected Result:
Motivate quote database is updated.
Actual Result:
bash: ./UPDATE: No such file or directory
There is no "UPDATE
" script inside the repository? So, how do I update the database?
I followed sudo version of installation instructions and when I run the command below
I got message "ln: target '/usr/local/share/motivate/data' is not a directory"
I already saw a previous issue related to installation failing, but this is a different one.
This issue is presented using Ubuntu 16.04LTS
Hey @mubaris, nice app :)
Have you considered using any randomly generated quotes API? Here are some free options:
examples:
http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1
https://api.forismatic.com/api/1.0/?method=getQuote&format=jsonp&jsonp=parseQuote&lang=en
If you're in I could start implementation.
Convert this script to simple Python package. Add setup.py
and reorganize the repo.
Hi! Is this project still up for contributions?
I followed the README.md Installation instructions (for no root privilege). I cloned the repo, 'cd' into the motivate directory, and setup the softlinks to get:
I've appended the PWD (from within the motivation directory) to the PATH variable:
Then the README.md says "later you can run by calling moti". So when I type 'moti' from within the motivate directory I get the following error:
I see the "Can't find the data folder" error and it's telling me I probably haven't run 'install.sh', but why isn't that step specifically mentioned in the installation instructions for no root privilege? And wouldn't I need elevated privileges to run sudo install.sh?
Firstly - Hello and nice project!
I have a query however - Unfortunately the method of using ANSI escape sequences to colour the output doesn't seem to work in all cases on Windows 10. I'm running Windows 10 Home, Version 1703, Build 15063.674 and the output includes parts of the escape strings printed with the quote like this -
I may be doing something wrong (?) but from what I can gather from this and this the feature was available briefly but then removed by default, and as far as I can see there is no straightforward way to colour individual lines of text output (without further configuration or an external tool), although others may know better?
A simple way to at least get the quotes looking nice is to use platform.system()
to test if the OS is Windows, and then not include the colour sequences if it is, so the output looks like this -
I have tried this on my own fork so will submit a PR if anyone wants it? :)
Does this program work in windows? I see there code in here referencing Sudo which is just for Linux so is that the only system that this program works for? I kept getting an error when trying to use it in windows
I'm getting this error when I try to push my branch to remote
c:\PythonOpenSource\motivate>git push -u origin abhib_quotes
remote: Permission to mubaris/motivate.git denied to Abhi-Bhargava1.
fatal: unable to access 'https://github.com/mubaris/motivate.git/': The requested URL returned error: 403
Do i need write permissions for this repository?
Thanks
Sorry to spam this board, but I really hope to install motivate into my Macbook (using terminal). The problem I encountered is, the terminal always telling me "This script must be with sudo" when I executed the ./install.sh
command.
I tried to solve this and I did read some of the related posts from Slackoverflow, but still failed.
For example, I ran sudo ./install.sh
and it returned
chmod +x install.sh
and then ./install.sh
: Failed. Return "This script must be with sudo".
*I also double checked if I'm in the right directory but still could not install. Hope to have any help! Thank you! :)
*Other Info
Macbook Pro, macOS Sierra version 10.12.6
According to a survey it has been proved that blue color motivates most and red color attracts most.
Description link:
https://www.sciencedaily.com/releases/2009/02/090205142143.htm
The README doesn't line up with the contents of the repo due to recent changes, could it be updated?
I got notified of a new release, but cloning and following the instructions fresh no longer work.
In the first data file this appears twice:
More powerful than the will to win is the courage to begin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.