From ce6da0d1060f848f083fd5b57f295cf6110c39f3 Mon Sep 17 00:00:00 2001 From: deadvey Date: Sun, 29 Mar 2026 19:53:07 +0100 Subject: [PATCH] initial commit --- .args.py.swp | Bin 0 -> 12288 bytes .dictate.py.swp | Bin 0 -> 12288 bytes README.md | 13 ++ __pycache__/args.cpython-313.pyc | Bin 0 -> 1769 bytes __pycache__/dictate.cpython-313.pyc | Bin 0 -> 3440 bytes __pycache__/get_dictation.cpython-313.pyc | Bin 0 -> 2124 bytes __pycache__/maths.cpython-313.pyc | Bin 0 -> 402 bytes args.py | 29 +++ config.json | 5 + dictate.py | 61 +++++++ get_dictation.py | 38 ++++ languages/english.json | 1 + languages/spanish.json | 1 + main.py | 25 +++ maths.py | 4 + quotes/english.json | 207 ++++++++++++++++++++++ quotes/spanish.json | 4 + 17 files changed, 388 insertions(+) create mode 100644 .args.py.swp create mode 100644 .dictate.py.swp create mode 100644 README.md create mode 100644 __pycache__/args.cpython-313.pyc create mode 100644 __pycache__/dictate.cpython-313.pyc create mode 100644 __pycache__/get_dictation.cpython-313.pyc create mode 100644 __pycache__/maths.cpython-313.pyc create mode 100644 args.py create mode 100644 config.json create mode 100644 dictate.py create mode 100644 get_dictation.py create mode 100644 languages/english.json create mode 100644 languages/spanish.json create mode 100644 main.py create mode 100644 maths.py create mode 100644 quotes/english.json create mode 100644 quotes/spanish.json diff --git a/.args.py.swp b/.args.py.swp new file mode 100644 index 0000000000000000000000000000000000000000..fa2062559c60baa9877053fa0c189072925c96a2 GIT binary patch literal 12288 zcmYc?2=nw+u+%eRU|?VnU|`5DKACw^)`g*e5kEspYGO)RY9&YpFV4wNPRz;3FD}so zvr_VN6EpL$=%|AlsGppllB!=&S(1^Tr=OUUn39^Br=M7qUaVI@*fK2UjtY&2z-R~% z2!Ya)G+hf`24f>b1CUB(B}D~cp->QW6px0$Xb6mkz-S1JhQMeDjE2By2#kinXb6mu z5GW~NWT#?Qd;il2euAU^}c6n+MVc76tiLVgAYSAGTt zEq(@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p4*;*#jx z#FC6+y`;><;?$IQP$J0B)c_>`kV=RWP$GzB;4II`%t=)+w6!&~V&DV^6}qRD72NWR z6tYuO3o`T46-tT{ld~1_(;$B11X~R;P{CFqr8Ku7S{-bMIw&E6_=M5}EdKE)3G_4p zwgc={1zUyaSp10u6#OYDi3B7*zzPs>K$01UASYyk>@P~pOHb7>&;g}ma9IXQhDe!M6Rku71svGo!5)L4 pP%K7@!OYx({Gt*Ca4KhDfbt;89L57hF^ml=S72;pacF_U0073?OVt1X literal 0 HcmV?d00001 diff --git a/README.md b/README.md new file mode 100644 index 0000000..945a278 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +All these options overide configuration in config.json +**--wpm, -w ** + set the rate of dictation, defaults to 50, note: this is not exact as it measures the time between words in order to avoid a very short gap after a long word. +**--mode, -m ** + Sets a mode, one of 'timed', 'words','quote' or 'file' followed by an optional modifier representing either the time (in seconds) or the number of words, or the quote ID, or the file name. +**--language, -l ** + Selects a language, defaults to english, must be a listed language in -i +**--list-quotes, -q** + Lists the available quotes and exits +**--list-languages, -i** + Lists the installed languages and exits +**--help, -h** + Output's this help text and exits diff --git a/__pycache__/args.cpython-313.pyc b/__pycache__/args.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..21d4406911140c1ae3b2d13b8dc983326528059c GIT binary patch literal 1769 zcmey&%ge>Uz`&4Qd@?hInStRkhy%k+P{wB|1_p+y48aV+jNS}I5Sp=wF_=k;p@=D+ zQIq*4NTFXcOg)GPGL@Nuf#I_fGe~bVBS;X0Lm7e@gBe&DOrave4DO5`;S3C=ObiSK z%Aw4*jJAxyOjZ#L42g^k4E~(9jKR!s9+LutzqkT}0z)*&Y>;sb5lq1>x(o~qtPBir zGea4JS=AXB7<}~^7{KPS!A$^}#}4O#%;N)@hipnHV=xC;w;xnDCtN*9Hy4}-(yfF= zH#bPP9I6|6u(**Iq|UbyY6~CST#zmNa307O50EXBaAB zcSheZ1_n6>cSheRNZ5ojsxT-rD1cHRJa$7FgTb*X4^o%Mz+lTP&ydEb$e_cZ0rgf2 zBLhPklLCW011L`Yk|8QIrTkukGDH=tu5NijZWWVm`Ablw++qgtxO8=M67$ka6Vp?x zm~?Y)almMv>N%1YVWZ?SMAzbK(~Swy?Rt;4k0_XdY#AJ4Rq%N&w7 zB$ZYOE;PR=36in8%p!J!L$r@$nn*YA4N@(PAR9%$Nx*)E- z!t?^4;T2A!4Jmi{g!(hPGH0-K=Qo6XXJ+6sej={0K5mHHPntuAm|Ut_iT$jl(2`Gkd|-R%Yk=PeeVkA@5)IvG1H(aUVOL$IBRt}646H|W zd0cH-k1=q$@o{Q07YQ;jFcgV{2vD@FWcUoqM@0$@3=Fq8Y;yBcN^?@}ic}aF7(m&l d7*w2mU}j`wyv@LQn}Pc?lN2L=kun1V0{}@%bfN$N literal 0 HcmV?d00001 diff --git a/__pycache__/dictate.cpython-313.pyc b/__pycache__/dictate.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9b8f47cb08b7fb75a1bad2e346da6c633e3097f8 GIT binary patch literal 3440 zcmey&%ge>Uz`!uS_+%yz8w0~*5C?{tpp4IM3=9lY8G;#t8NC^bAT(nUBbd)r!~~{c zeC8r%FrTG}C74Nyp@=n@S&E^EEto}$p@==5QIqv0$WXszMi2$X>ct}@>oJyf>}Z4TOqEtDac9i$Sb zLYTqBnSmjXEtDym2c{~B55_{!N(|A0FkUDV%;sPYT`mR&7!PD_9(yQjkT6Uof(~Ve zsZwBw7KMq2vIlbpb6GMeF!;JMFmN*{Fod!~UBn*B7$go;hoF(o31tkDM99Ecu+Uau zh?ath1cBkU>;p=1_lsDxDw`~bOuER9R>}k#uP>dhBPJx26+Yr z1_cJc4Ythk3~7v-ynes9auV~>OB2&mi}i1Dz}UZ7^|Ffd^KLN~-C`}zFG?vc0>$tx z-rW3@)cD-|l+3iu)S{Q5c)Z1^pvicPIW;fk7IS$)?n@g61_n+3TkHjuB_+ib#5hx#Z^?A=a`ogo(M9tBr`Yl7He@%YH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um6f)x2B!_6$EF2#35LT!4$$^2xZjeU|rxB^Yn8QOEQY}3My~$ zCS@iTr>4Y13@+k?dZJjCfq|ic;SRUJ6t(HPlXNHRFNnA(q`N`#qM+4fZtDvy)}KMH z)?|DM^0FpV5i0`&16cP;h9Xed7I82zFx=v>$<0qG%}KQ@;$>i90QspH#Q4C>$jEq` Nf%hv5BclyiIRN;)P}2Ya literal 0 HcmV?d00001 diff --git a/args.py b/args.py new file mode 100644 index 0000000..8791538 --- /dev/null +++ b/args.py @@ -0,0 +1,29 @@ +import os +import json +def handle_arguments(arguments, config): + for index, arg in enumerate(arguments[1:]): + match arg: + case '--wpm'|'-w': + config['wpm'] = int(arguments[index+2]) + case '--language'|'-l': + config['language'] = arguments[index+2] + case '--mode'|'-m': + config['mode'] = arguments[index+2] + try: + config['mode_modifier'] = int(arguments[index+3]) + except: + config['mode_modifier'] = arguments[index+3] + case '--list-languages'|'-i': + languages = os.listdir('languages') + for lang in languages: + print(lang.replace('.json','')) + exit() + case '--list-quotes'|'-q': + with open(f'quotes/{config['language']}.json') as file: + quotes = json.load(file) + for index,quote in enumerate(quotes): + print(f'{index}: {quote['quote']} - {quote['author']}') + exit() + case _: + continue + return config diff --git a/config.json b/config.json new file mode 100644 index 0000000..64681d3 --- /dev/null +++ b/config.json @@ -0,0 +1,5 @@ +{ + "mode": "quote", + "wpm": 50, + "language": "english" +} diff --git a/dictate.py b/dictate.py new file mode 100644 index 0000000..ad997fb --- /dev/null +++ b/dictate.py @@ -0,0 +1,61 @@ +import pyttsx3 +import time +import json +import time +import random + +import maths + +def words(config): + engine = pyttsx3.init() + words_list = [] + with open(f'languages/{config['language']}.json', 'r') as file: + dump = json.load(file) + words_list = dump['words'] + dictation = [] + for i in range(0, config['mode_modifier']): + word = words_list[maths.biased_random(len(words_list)-1)] + dictation.append(word) + print(word,end=' ') + for word in dictation: + engine.say(word) + engine.runAndWait() + time.sleep(1/(config['wpm']/60)) + +def timed(config): + engine = pyttsx3.init() + words_list = [] + with open(f'languages/{config['language']}.json', 'r') as file: + dump = json.load(file) + words_list = dump['words'] + # For keeping track of time + start = time.time() + while 1==1: + word = words_list[maths.biased_random(len(words_list)-1)] + engine.say(word) + print(f'{word} ') + engine.runAndWait() + time.sleep(1/(config['wpm']/60)) + + # check if too much time has elapsed for mode: time + now = time.time() + # Break condition + if (now-start) > config['mode_modifier']: + break + +def quote(config): + engine = pyttsx3.init() + with open(f'quotes/{config['language']}.json', 'r') as file: + quotes = json.load(file) + if 'mode_modifier' in config: + quote = quotes[config['mode_modifier']] + else: + x = random.randint(0, len(quotes)-1) + quote = quotes[x] + print(f'{quote['quote']}\n\t\t\t - {quote['author']}') + dictation = quote['quote'].split(' ') + for word in dictation: + engine.say(word) + engine.runAndWait() + time.sleep(1/(config['wpm']/60)) + diff --git a/get_dictation.py b/get_dictation.py new file mode 100644 index 0000000..6a67541 --- /dev/null +++ b/get_dictation.py @@ -0,0 +1,38 @@ +import json +import maths +import random + +def words(config): + dictation = [] + words_list = [] + with open(f'languages/{config['language']}.json', 'r') as file: + dump = json.load(file) + words_list = dump['words'] + + for i in range(0,config['mode_modifier']): + x = maths.biased_random(len(words_list)-1) + dictation.append(words_list[x]) + return dictation + +def time(config): + dictation = [] + words_list = [] + with open(f'languages/{config['language']}.json', 'r') as file: + dump = json.load(file) + words_list = dump['words'] + + # TODO: Really, these should be generated on demand + for i in range(0,config['mode_modifier']*3): + x = maths.biased_random(len(words_list)-1) + dictation.append(words_list[x]) + return dictation + +def quote(config): + dictation = [] + with open(f'quotes/{config['language']}.json', 'r') as file: + quotes = json.load(file) + print(quotes) + x = random.randint(0,len(quotes)-1) + print(quotes[x]) + + return dictation diff --git a/languages/english.json b/languages/english.json new file mode 100644 index 0000000..329826b --- /dev/null +++ b/languages/english.json @@ -0,0 +1 @@ +{"name":"english","noLazyMode":true,"orderedByFrequency":true,"words":["the","be","of","and","a","to","in","he","have","it","that","for","they","I","with","as","not","on","she","at","by","this","we","you","do","but","from","or","which","one","would","all","will","there","say","who","make","when","can","more","if","no","man","out","other","so","what","time","up","go","about","than","into","could","state","only","new","year","some","take","come","these","know","see","use","get","like","then","first","any","work","now","may","such","give","over","think","most","even","find","day","also","after","way","many","must","look","before","great","back","through","long","where","much","should","well","people","down","own","just","because","good","each","those","feel","seem","how","high","too","place","little","world","very","still","nation","hand","old","life","tell","write","become","here","show","house","both","between","need","mean","call","develop","under","last","right","move","thing","general","school","never","same","another","begin","while","number","part","turn","real","leave","might","want","point","form","off","child","few","small","since","against","ask","late","home","interest","large","person","end","open","public","follow","during","present","without","again","hold","govern","around","possible","head","consider","word","program","problem","however","lead","system","set","order","eye","plan","run","keep","face","fact","group","play","stand","increase","early","course","change","help","line"]} diff --git a/languages/spanish.json b/languages/spanish.json new file mode 100644 index 0000000..3c8bcff --- /dev/null +++ b/languages/spanish.json @@ -0,0 +1 @@ +{"name":"spanish","bcp47":"es-ES","words":["como","su","que","él","era","para","en","son","con","ellos","ser","uno","tener","este","desde","por","caliente","palabra","pero","qué","algunos","es","lo","usted","o","tenido","la","de","a","y","un","nos","lata","otros","eran","hacer","tiempo","si","cómo","dicho","cada","decir","hace","conjunto","tres","querer","aire","así","también","jugar","pequeño","fin","poner","leer","mano","puerto","grande","deletrear","añadir","incluso","tierra","aquí","debe","alto","tal","siga","acto","hierro","preguntar","hombres","cambio","porque","luz","tipo","fuego","imagen","tratar","nosotros","animal","punto","madre","mundo","cerca","construir","auto","padre","cualquier","nuevo","trabajo","parte","tomar","conseguir","lugar","hecho","vivir","donde","después","atrás","poco","ronda","hombre","años","vino","buena","me","dar","nuestro","bajo","nombre","muy","forma","frase","gran","pensar","ayudar","línea","caja","causa","mucho","ciudad","antes","movimiento","derecho","niño","viejo","demasiado","misma","ella","todo","hay","cuando","hasta","uso","camino","acerca","muchos","entonces","escribir","haría","éstos","largo","cosa","ver","dos","tiene","buscar","más","día","podía","ir","venir","hizo","número","sonar","no","personas","mi","sobre","saber","agua","llamada","primero","puede","abajo","lado","estado","ahora","encontrar","bien","siempre","mayor","menor","mientras","quien","ayer","pasado","medio","nunca","poder","veces","fiesta","grupo","cuenta","noche","gente","cuerpo","semana","segundo","varios","libro","persona","fuera","casa","solo","mujer","sistema","vida"]} \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..b34caff --- /dev/null +++ b/main.py @@ -0,0 +1,25 @@ +import pyttsx3 +import sys +import json + +import args # Handles command line arguments +import maths +import dictate + +config = {} +with open('config.json', 'r') as file: + config = json.load(file) + +# Handle the command line arguments +config = args.handle_arguments(sys.argv, config) +print(config) + +dictation = '' + +# TODO: match case +if config['mode'] == 'words': + dictate.words(config) +if config['mode'] == 'timed': + dictate.timed(config) +if config['mode'] == 'quote': + dictate.quote(config) diff --git a/maths.py b/maths.py new file mode 100644 index 0000000..3035ca6 --- /dev/null +++ b/maths.py @@ -0,0 +1,4 @@ +import random +# Random number generator that's biased towards 0 +def biased_random(max_value, strength=3): + return round((random.random() ** strength) * max_value) diff --git a/quotes/english.json b/quotes/english.json new file mode 100644 index 0000000..7ee7c5d --- /dev/null +++ b/quotes/english.json @@ -0,0 +1,207 @@ +[ + +{ + "quote":"Life isn’t about getting and having, it’s about giving and being.","author":"Kevin Kruse"}, +{ + "quote":"Whatever the mind of man can conceive and believe, it can achieve.","author":"Napoleon Hill"}, +{ + "quote":"Strive not to be a success, but rather to be of value.","author":"Albert Einstein"}, +{ + "quote":"Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.","author":"Robert Frost"}, +{ + "quote":"I attribute my success to this: I never gave or took any excuse.","author":"Florence Nightingale"}, +{ + "quote":"You miss 100% of the shots you don’t take.","author":"Wayne Gretzky"}, +{ + "quote":"I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.","author":"Michael Jordan"}, +{ + "quote":"The most difficult thing is the decision to act, the rest is merely tenacity.","author":"Amelia Earhart"}, +{ + "quote":"Every strike brings me closer to the next home run.","author":"Babe Ruth"}, +{ + "quote":"Definiteness of purpose is the starting point of all achievement.","author":"W. Clement Stone"}, +{ + "quote":"We must balance conspicuous consumption with conscious capitalism.","author":"Kevin Kruse"}, +{ + "quote":"Life is what happens to you while you’re busy making other plans.","author":"John Lennon"}, +{ + "quote":"We become what we think about.","author":"Earl Nightingale"}, +{ + "quote":"Twenty years from now you will be more disappointed by the things that you didn’t do than by the ones you did do, so throw off the bowlines, sail away from safe harbor, catch the trade winds in your sails. Explore, Dream, Discover.","author":"Mark Twain"}, +{ + "quote":"Life is 10% what happens to me and 90% of how I react to it.","author":"Charles Swindoll"}, +{ + "quote":"The most common way people give up their power is by thinking they don’t have any.","author":"Alice Walker"}, +{ + "quote":"The mind is everything. What you think you become.","author":"Buddha"}, +{ + "quote":"The best time to plant a tree was 20 years ago. The second best time is now.","author":"Chinese Proverb"}, +{ + "quote":"An unexamined life is not worth living.","author":"Socrates"}, +{ + "quote":"Eighty percent of success is showing up.","author":"Woody Allen"}, +{ + "quote":"Your time is limited, so don’t waste it living someone else’s life.","author":"Steve Jobs"}, +{ + "quote":"Winning isn’t everything, but wanting to win is.","author":"Vince Lombardi"}, +{ + "quote":"I am not a product of my circumstances. I am a product of my decisions.","author":"Stephen Covey"}, +{ + "quote":"Every child is an artist. The problem is how to remain an artist once he grows up.","author":"Pablo Picasso"}, +{ + "quote":"You can never cross the ocean until you have the courage to lose sight of the shore.","author":"Christopher Columbus"}, +{ + "quote":"I’ve learned that people will forget what you said, people will forget what you did, but people will never forget how you made them feel.","author":"Maya Angelou"}, +{ + "quote":"Either you run the day, or the day runs you.","author":"Jim Rohn"}, +{ + "quote":"Whether you think you can or you think you can’t, you’re right.","author":"Henry Ford"}, +{ + "quote":"The two most important days in your life are the day you are born and the day you find out why.","author":"Mark Twain"}, +{ + "quote":"Whatever you can do, or dream you can, begin it. Boldness has genius, power and magic in it.","author":"Johann Wolfgang von Goethe"}, +{ + "quote":"The best revenge is massive success.","author":"Frank Sinatra"}, +{ + "quote":"People often say that motivation doesn’t last. Well, neither does bathing. That’s why we recommend it daily.","author":"Zig Ziglar"}, +{ + "quote":"Life shrinks or expands in proportion to one’s courage.","author":"Anais Nin"}, +{ + "quote":"If you hear a voice within you say “you cannot paint,” then by all means paint and that voice will be silenced.","author":"Vincent Van Gogh"}, +{ + "quote":"There is only one way to avoid criticism: do nothing, say nothing, and be nothing.","author":"Aristotle"}, +{ + "quote":"Ask and it will be given to you; search, and you will find; knock and the door will be opened for you.","author":"Jesus"}, +{ + "quote":"The only person you are destined to become is the person you decide to be.","author":"Ralph Waldo Emerson"}, +{ + "quote":"Go confidently in the direction of your dreams. Live the life you have imagined.","author":"Henry David Thoreau"}, +{ + "quote":"When I stand before God at the end of my life, I would hope that I would not have a single bit of talent left and could say, I used everything you gave me.","author":"Erma Bombeck"}, +{ + "quote":"Few things can help an individual more than to place responsibility on him, and to let him know that you trust him.","author":"Booker T. Washington"}, +{ + "quote":"Certain things catch your eye, but pursue only those that capture the heart.","author":" Ancient Indian Proverb"}, +{ + "quote":"Believe you can and you’re halfway there.","author":"Theodore Roosevelt"}, +{ + "quote":"Everything you’ve ever wanted is on the other side of fear.","author":"George Addair"}, +{ + "quote":"We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light.","author":"Plato"}, +{ + "quote":"Teach thy tongue to say, “I do not know,” and thous shalt progress.","author":"Maimonides"}, +{ + "quote":"Start where you are. Use what you have. Do what you can.","author":"Arthur Ashe"}, +{ + "quote":"When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy’. They told me I didn’t understand the assignment, and I told them they didn’t understand life.","author":"John Lennon"}, +{ + "quote":"Fall seven times and stand up eight.","author":"Japanese Proverb"}, +{ + "quote":"When one door of happiness closes, another opens, but often we look so long at the closed door that we do not see the one that has been opened for us.","author":"Helen Keller"}, +{ + "quote":"Everything has beauty, but not everyone can see.","author":"Confucius"}, +{ + "quote":"How wonderful it is that nobody need wait a single moment before starting to improve the world.","author":"Anne Frank"}, +{ + "quote":"When I let go of what I am, I become what I might be.","author":"Lao Tzu"}, +{ + "quote":"Life is not measured by the number of breaths we take, but by the moments that take our breath away.","author":"Maya Angelou"}, +{ + "quote":"Happiness is not something readymade. It comes from your own actions.","author":"Dalai Lama"}, +{ + "quote":"If you’re offered a seat on a rocket ship, don’t ask what seat! Just get on.","author":"Sheryl Sandberg"}, +{ + "quote":"First, have a definite, clear practical ideal; a goal, an objective. Second, have the necessary means to achieve your ends; wisdom, money, materials, and methods. Third, adjust all your means to that end.","author":"Aristotle"}, +{ + "quote":"If the wind will not serve, take to the oars.","author":"Latin Proverb"}, +{ + "quote":"You can’t fall if you don’t climb. But there’s no joy in living your whole life on the ground.","author":"Unknown"}, +{ + "quote":"We must believe that we are gifted for something, and that this thing, at whatever cost, must be attained.","author":"Marie Curie"}, +{ + "quote":"Too many of us are not living our dreams because we are living our fears.","author":"Les Brown"}, +{ + "quote":"Challenges are what make life interesting and overcoming them is what makes life meaningful.","author":"Joshua J. Marine"}, +{ + "quote":"If you want to lift yourself up, lift up someone else.","author":"Booker T. Washington"}, +{ + "quote":"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.","author":"Leonardo da Vinci"}, +{ + "quote":"Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless.","author":"Jamie Paolinetti"}, +{ + "quote":"You take your life in your own hands, and what happens? A terrible thing, no one to blame.","author":"Erica Jong"}, +{ + "quote":"What’s money? A man is a success if he gets up in the morning and goes to bed at night and in between does what he wants to do.","author":"Bob Dylan"}, +{ + "quote":"I didn’t fail the test. I just found 100 ways to do it wrong.","author":"Benjamin Franklin"}, +{ + "quote":"In order to succeed, your desire for success should be greater than your fear of failure.","author":"Bill Cosby"}, +{ + "quote":"A person who never made a mistake never tried anything new.","author":" Albert Einstein"}, +{ + "quote":"The person who says it cannot be done should not interrupt the person who is doing it.","author":"Chinese Proverb"}, +{ + "quote":"There are no traffic jams along the extra mile.","author":"Roger Staubach"}, +{ + "quote":"It is never too late to be what you might have been.","author":"George Eliot"}, +{ + "quote":"You become what you believe.","author":"Oprah Winfrey"}, +{ + "quote":"I would rather die of passion than of boredom.","author":"Vincent van Gogh"}, +{ + "quote":"A truly rich man is one whose children run into his arms when his hands are empty.","author":"Unknown"}, +{ + "quote":"It is not what you do for your children, but what you have taught them to do for themselves, that will make them successful human beings.","author":"Ann Landers"}, +{ + "quote":"If you want your children to turn out well, spend twice as much time with them, and half as much money.","author":"Abigail Van Buren"}, +{ + "quote":"Build your own dreams, or someone else will hire you to build theirs.","author":"Farrah Gray"}, +{ + "quote":"The battles that count aren’t the ones for gold medals. The struggles within yourself–the invisible battles inside all of us–that’s where it’s at.","author":"Jesse Owens"}, +{ + "quote":"Education costs money. But then so does ignorance.","author":"Sir Claus Moser"}, +{ + "quote":"I have learned over the years that when one’s mind is made up, this diminishes fear.","author":"Rosa Parks"}, +{ + "quote":"It does not matter how slowly you go as long as you do not stop.","author":"Confucius"}, +{ + "quote":"If you look at what you have in life, you’ll always have more. If you look at what you don’t have in life, you’ll never have enough.","author":"Oprah Winfrey"}, +{ + "quote":"Remember that not getting what you want is sometimes a wonderful stroke of luck.","author":"Dalai Lama"}, +{ + "quote":"You can’t use up creativity. The more you use, the more you have.","author":"Maya Angelou"}, +{ + "quote":"Dream big and dare to fail.","author":"Norman Vaughan"}, +{ + "quote":"Our lives begin to end the day we become silent about things that matter.","author":"Martin Luther King Jr."}, +{ + "quote":"Do what you can, where you are, with what you have.","author":"Teddy Roosevelt"}, +{ + "quote":"If you do what you’ve always done, you’ll get what you’ve always gotten.","author":"Tony Robbins"}, +{ + "quote":"Dreaming, after all, is a form of planning.","author":"Gloria Steinem"}, +{ + "quote":"It’s your place in the world; it’s your life. Go on and do all you can with it, and make it the life you want to live.","author":"Mae Jemison"}, +{ + "quote":"You may be disappointed if you fail, but you are doomed if you don’t try.","author":"Beverly Sills"}, +{ + "quote":"Remember no one can make you feel inferior without your consent.","author":"Eleanor Roosevelt"}, +{ + "quote":"Life is what we make it, always has been, always will be.","author":"Grandma Moses"}, +{ + "quote":"The question isn’t who is going to let me; it’s who is going to stop me.","author":"Ayn Rand"}, +{ + "quote":"When everything seems to be going against you, remember that the airplane takes off against the wind, not with it.","author":"Henry Ford"}, +{ + "quote":"It’s not the years in your life that count. It’s the life in your years.","author":"Abraham Lincoln"}, +{ + "quote":"Change your thoughts and you change your world.","author":"Norman Vincent Peale"}, +{ + "quote":"Either write something worth reading or do something worth writing.","author":"Benjamin Franklin"}, +{ + "quote":"Nothing is impossible, the word itself says, “I’m possible!”","author":"–Audrey Hepburn"}, +{ + "quote":"The only way to do great work is to love what you do.","author":"Steve Jobs"}, +{ + "quote":"If you can dream it, you can achieve it.","author":"Zig Ziglar"} +] diff --git a/quotes/spanish.json b/quotes/spanish.json new file mode 100644 index 0000000..eb1573e --- /dev/null +++ b/quotes/spanish.json @@ -0,0 +1,4 @@ +[ + {"quote": "La pluma es la lengua del alma.", "author": "Miguel de Cervantes"}, + {"quote": "Todos los niños nacen artistas. El problema es cómo seguir siendo artistas al crecer.", "Pablo Picasso"} +]