Created
November 6, 2017 16:20
-
-
Save DarrylD/d00ba20ed7aa220fff1fddb83e7b9f1f to your computer and use it in GitHub Desktop.
Bitbar plugin to give zen like quotes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/node | |
var quotes = [ | |
"Whatever you are, be a good one.\n-Abraham Lincoln", | |
"If you dream it, you can do it.\n-Walt Disney", | |
"Never, never, never give up.\n-Winston Churchill", | |
"Don’t wait. The time will never be just right.\n-Napoleon Hill", | |
"If not us, who? If not now, when?\n-John F. Kennedy", | |
"Everything you can imagine is real.\n-Pablo Picasso", | |
"I can, therefore I am.\n-Simone Weil", | |
"Remember no one can make you feel inferior without your consent.\n-Eleanor Roosevelt", | |
"Turn your wounds into wisdom.\n-Oprah Winfrey", | |
"Wherever you go, go with all your heart.\n-Confucius", | |
"Do what you can, with what you have, where you are.\n-Theodore Roosevelt", | |
"Hope is a waking dream.\n-Aristotle", | |
"Action is the foundational key to all success.\n-Pablo Picasso", | |
"Do one thing every day that scares you.\n-Eleanor Roosevelt", | |
"You must do the thing you think you cannot do.\n-Eleanor Roosevelt", | |
"Life is trying things to see if they work.\n-Ray Bradbury", | |
"Don’t regret the past, just learn from it.\n-Ben Ipock", | |
"Believe you can and you’re halfway there.\n-Theodore Roosevelt", | |
"Live what you love.\n-Jo Deurbrouck", | |
"The power of imagination makes us infinite.\n-John Muir", | |
"May you live every day of your life.\n-Jonathan Swift", | |
"Eighty percent of success is showing up.\n-Woody Allen", | |
"To be the best, you must be able to handle the worst.\n-Wilson Kanadi", | |
"A jug fills drop by drop.\n-Buddha", | |
"The obstacle is the path.\n-Zen Proverb", | |
"The best revenge is massive success.\n-Frank Sinatra", | |
"The best way out is always through.\n-Robert Frost", | |
"If you have never failed you have never lived.\n-Unknown", | |
"Hope is the heartbeat of the soul.\n-Michelle Horst", | |
"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.\n-Samuel Beckett", | |
"All you need is love.\n-John Lennon", | |
"It does not matter how slowly you go as long as you do not stop.\n-Confucius", | |
"It is never too late to be what you might have been.\n-Anonymous", | |
"We become what we think about.\n-Earl Nightingale", | |
"An obstacle is often a stepping stone.\n-Prescott Bush", | |
"Dream big and dare to fail.\n-Norman Vaughan", | |
"Men are born to succeed, not fail.\n-Henry David Thoreau" | |
] | |
const go = function(){ | |
var randomQuote = quotes[Math.floor(Math.random() * quotes.length)] | |
var data = randomQuote.split('-') | |
const quote = data[0].trim() | |
const person = data[1] | |
console.log(quote) | |
console.log('---') | |
console.log('- ' + person) | |
} | |
go() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment