Skip to content

Instantly share code, notes, and snippets.

@fgcarto
Last active March 24, 2016 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fgcarto/9a313f4e44afca9ceb1b to your computer and use it in GitHub Desktop.
Save fgcarto/9a313f4e44afca9ceb1b to your computer and use it in GitHub Desktop.
Function that return a quote when your script executes correctly. Just add "Print EndOfScript()" at the end...
###############################################################################
###############################################################################
def EndOfScript():
""" Sends back a "End of Script" message. Totally useless, but I was tired
sometime of debugging and need doing something fun ;) """
###############################################################################
import random
quotes = []
quotes.append("""\n-- So Long, and Thanks for All the Fish!""")
quotes.append("""\n-- 42.""")
quotes.append("""\n-- DON'T PANIC!""")
quotes.append("""\n-- Do, or do not. There is no 'try'.""")
quotes.append("""\n-- May the Force be with you.""")
quotes.append("""\n-- Frankly, my dear, I don't give a damn.""")
quotes.append("""\n-- You talkin' to me?""")
quotes.append("""\n-- I love the smell of napalm in the morning.""")
quotes.append("""\n-- Bond. James Bond.""")
quotes.append("""\n-- Show me the money!""")
quotes.append("""\n-- You can't handle the truth!""")
quotes.append("""\n-- Hasta la vista, Baby!""")
quotes.append("""\n-- I see dead people.""")
quotes.append("""\n-- It's alive! It's alive!""")
quotes.append("""\n-- You had me at 'hello'.""")
quotes.append("""\n-- Elementary, my dear Watson.""")
quotes.append("""\n-- They're heeeere!""")
quotes.append("""\n-- Surely you can't be serious. \
\n-- I am serious...and don't call me Shirley.""")
quotes.append("""\n-- Adriaaaaan!""")
quotes.append("""\n-- My precious.""")
quotes.append("""\n-- The world is changed. I feel it in the water. I feel it in the earth. I smell it in the air.
\n Much that once was is lost, for none now live who remember it.""")
quotes.append("""\n-- One does not simply walk into Mordor. It is folly.""")
quotes.append("""\n-- One Ring to rule them all, One Ring to find them, \
\n One Ring to bring them all and in the darkness bind them.""")
quotes.append("""\n-- Well, I'm back.""")
quotes.append("""\n-- Truth hurts. Maybe not as much as jumping on a bicycle with the seat missing, but it hurts...""")
quotes.append("""\n-- Uh, everything's perfectly fine now. We're fine. We're all fine here now. How are you?""")
quotes.append("""\n-- Help me, Obi-Wan Kenobi. You're my only hope.""")
quotes.append("""
\n (\(\\
\n ( -.-)
\n o_('')('')
""")
quotes.append("""
______
,-'//__\\`-.
,' ____ `.
/ / ,-.-. \
(/# /__`-'_| || || )
||# []/()] O || || |
__`------------------'__
|--| |<=={_______}=|| |--|
| | |-------------|| | |
| | |={_______}==>|| | |
| | | |: _ :| || | |
> _| |___|:===:| || |__<
:| | __| |: - :| || | |:
:| | ==| |: _ :| || | |:
:| | ==|_|:===:|___||_| |:
:| |___|_|:___:|___||_| |:
:| ||| ||/_\|| ||| -| |:
;I_|||[]_||\_/|| ||| -|_I;
|_ |__________________| _|
| `\\\___|____|____/_//' |
J : | \____/ | : L
_|_: | |__| | :_|_
-/ _-_.' -/ \- `.-_- \-
/______\ /______\ /______\
""")
quotes.append("""\n-- A robot may not injure a human being or, through inaction, \
\n allow a human being to come to harm.
\n-- A robot must obey the orders given to it by human beings, \
\n except where such orders would conflict with the First Law.
\n-- A robot must protect its own existence as long as such protection \
\n does not conflict with the First or Second Law.""")
quotes.append("""\n-- Hi, Georgie! Aren't ya gonna say... *hello*? \
\n Awww, come on bucko! Don't you want a... balloon?""")
quotes.append("""\n-- When in doubt always follow your nose.""")
quotes.append("""\n-- Pardon my French, but Cameron is so uptight, if you stuck a lump of coal up his a**, \
\n in 2 weeks, you'd have a diamond. (Ferris Bueller)""")
quotes.append("""
______________________________________________________________________________
|==============================================================================|
|NOVA TOTIUS TERRARUM ORBIS GEOGRAPHICA AC HYDROGRAPHICA TABULA auct:Iud:Hondio|
|===,%% =========|====_== ,%% ================================================_|
| %%'} VER -/+\- (-( ''%% TERRA _,---._ AQUA~ O ~~~~~~~~ AESTAS %% /_|
| ,-' '-. .oO |_| `-)_/\..`-_ ,''._,-.)`.~~~_/ /> ~~~~~ _,--.(> %''%|_|
| /( \(.) \_`|'_,---'''''---`-.-.\/-. , o,-\,',-',---'''''---.`,,' o ,') (> |
| \|) `( `--,-' (`-. |-=o (( (|)-| ,-;, ,_`'-._/|_ `-. |) / \ |
| / \ ,' ,_ _)O `\ ,-".));`-./' /_;_|\`,-, \ _\_`ll |___| |
| |____,' \ (| `._ `._. \ ._,' _,--' `''' \| \`-`. ___ |
| _ |/|/ `-.____ ) \`---'/ / ,--..`.,-, _ _\ _\|_/ \|
|(+)| / ( \ .---,;. MAR \ / _,`-.._'`' ,\ `-' |\|;_|\.__,|
| _,-/ \|\ | ..--. DEL :\ / / '--../ `. _ \ ; \`--|
|/ ,: `\|-.`_-_ -.. NORT : | \|,' `. ,'. | : .: |
|.| | MAR DEL ,' '-._ | \____ O ,' |/ |-' ; :| |
| ,-|---------------------|-------',__--|-------\------/-------'--\|-()--.--|`.|
|' ,| .. ZUR \ \ |OCEANUS| , o | MAR DI `_ /'- |\ |
| / : ` .. | / : AETHIO \ | | INDIA `' :` |
|:| \ | _,' / \ PICUS | / ' _ /.\:|
|AUTUM\ | _;-' / \ \_,' / \_ / /-.| |
|o|NUS \ TERRA ._|,-' /,---.\ _.' `' / `.`o|
| | \_O_`. AUSTRALIS `._ ,' ,-. ) `. __......____/TERRA ,'HYEMS |
|.\ _|_/> `. INCOGNITA `._,/ -' /_\ \./ AUSTRALIS ,' 0 |:|
| \ / _-._ _,-' |,-.-. o | `-._ INCOGNITA _,-' ) /_\|.|
|--. / . : /____\---.....---',\_O_\ ,-. -')>/\_O_ `---.....---'('') ( /_/ |
|--' `.\; |--|-. ____IGNIS _|_/|`._>' `-_,' \)`- <o./|, ( ) |_| ll |
|__| \| |::::| \__/ (_(_-.\ <_ `---' _/`> AER `-'<o./|,""_-'_-._ |
|=jrei=================================,^.=====================================|
|__________________________________,-_'(_)'_-._________________________________|
""")
quotes.append("""\n-- What's up, Doc?""")
quotes.append("""\n-- You have thirteen hours in which to solve the labyrinth, \
\n before your baby brother becomes one of us... forever""")
quotes.append("""\n-- Whose motorcycle is this?
\n-- It's a chopper, baby.
\n-- Whose chopper is this?
\n-- It's Zed's.
\n-- Who's Zed?
\n-- Zed's dead, baby. Zed's dead.""")
quotes.append("""\n-- Ezekiel 25:17
\n-- The path of the righteous man is beset on all sides by the inequities \
\n of the selfish and the tyranny of evil men. Blessed is he who, in the \
\n name of charity and good will, shepherds the weak through the valley \
\n of darkness, for he is truly his brother's keeper and the finder of \
\n lost children. And I will strike down upon thee with great vengeance \
\n and furious anger those who would attempt to poison and destroy My \
\n brothers. And you will know My name is the Lord when I lay My \
\n vengeance upon thee.""")
quotes.append("""\n-- Listen... do you smell something?""")
quotes.append("""\n-- I am the Keymaster! The Destructor is coming. \
\n Gozer the Traveler, the Destroyer.""")
quotes.append("""\n-- Don't cross the streams.""")
quotes.append("""\n-- Ray, when someone asks you if you're a god, you say 'YES'!""")
quotes.append("""\n-- Mother pus bucket!""")
quotes.append("""\n-- We've been going about this all wrong. \
\n This Mr. Stay Puft's okay! He's a sailor, he's in New York; \
\n we get this guy laid, we won't have any trouble!""")
quotes.append("""\n-- I think it's only fair to warn you, this facility is surrounded \
\n by a highly trained team of 130 Black Op Snipers.
\n-- I don't believe you. \
\n-- Would you believe two dozen Delta Force Commandos? \
\n-- No.
\n-- How about Chuck Norris with a BB gun?""")
quotes.append("""\n-- These aren't the droids you're looking for.""")
quotes.append("""\n-- You're so ugly you could be a modern art masterpiece (Full Metal Jacket)""")
quotes.append("""\n-- Whenever I'm about to do something, I think, 'Would an idiot do that?' \
\n And if they would, I do not do that thing (The Office)""")
quotes.append("""\n-- You can get a good look at a butcher's ass by sticking your head up there. \
\n But, wouldn't you rather take his word for it? (Tommy Boy)""")
quotes.append("""\n-- Don't be telling me about foot massages. \
\n I'm the foot f***ing master! (Pulp Fiction)""")
quotes.append("""
(._.)/
<) ) Stayin' Alive!
/ \
\(._.)
( (> Stayin' Alive!
/ \
(._.)
<) )> Ah! ha! ha! ha! Stayin' Alive!!!
/ \\
""")
quotes.append("""\n-- Oh, very clever. \
\n-- Whatever you’ve got planned, forget it. \
\n-- I’m the Doctor, I’m 904 years old. \
\n-- I’m from the planet Gallifrey in the constellation of Kasterborous. \
\n-- I am the oncoming storm, the bringer of darkness, and you... \
\n-- are basically just a rabbit, aren’t you? \
\n-- Okay, carry on. \
\n-- Just a general warning. (Doctor Who)""")
quotes.append("""\n-- Qui sème le vent...\
\n récolte du blé d’inde pis des pétates.""")
quotes.append("""\n-- Jouer au ping pong tout seul... \
\n c’est bon pour le cardio, mais c’est plate rare.""")
quotes.append("""\n-- Il est parti comme... \
\n une vache dans un jeu de quilles.""")
quotes.append("""\n-- Toute vérité n’est pas... \
\n toujours vraie.""")
quotes.append("""\n-- On ne fait pas d’omelettes... \
\n sans se casser les yeux.""")
quotes.append("""\n-- Comme disait le grand Jules César: \
\n Oh boy qu’on a passé proche!""")
quotes.append("""\n-- Rien ne sert de courir... \
\n car l’autobus est déjà passé.""")
quotes.append("""\n-- Qui vivra... \
\n ne mourra pas tout de suite.""")
quotes.append("""\n-- L’avenir appartient à ceux qui se lave tôt, car... \
\n il reste encore de l’eau chaude.""")
quotes.append("""\n-- Il ne faut pas vendre la peau de l’ours... \
\n surtout s’il n’est pas d’accord avec le prix.""")
quotes.append("""\n-- Après la pluie... \
\n le gazon est mouillé.""")
quotes.append("""\n-- Je vous le dis... \
\n les tondeuses sont vertes cette année.""")
quotes.append("""\n-- Comme disait le grand Jules César: \
\n C’est le fun quand il y a pas de bébittes.""")
quotes.append("""\n-- Rien se sert de courir... \
\n il faut partir à go, encaisser 200$ et acheter l’avenue Connecticut.""")
quotes.append("""\n-- La vengeance est douce... \
\n quand on la savonne comme il le faut.""")
quotes.append("""\n-- J’avoue que ça dépasse le domaine de l’étonnant, va au delà des limites du... \
\n « kossé ça » et va atteindre les limites du « ah ben tabaslak!""")
quotes.append("""\n-- La fin justifie les moyens... \
\n loin des yeux loin du coeur... \
\n demain est un autre jour... \
\n petit train va loin... \
\n 4 à 2 Canadiens.""")
j = len(quotes)
i = random.randint(1, j)
return quotes[i-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment