Skip to content

Instantly share code, notes, and snippets.

@Tricky1975
Created September 27, 2018 13:17
Show Gist options
  • Save Tricky1975/0a6dd66a1e45bfa3d75c325778ba9cca to your computer and use it in GitHub Desktop.
Save Tricky1975/0a6dd66a1e45bfa3d75c325778ba9cca to your computer and use it in GitHub Desktop.
Silly random quote script for JavaScript (I was bored, mind ya!)
quotes = [
"'Whoever makes no mistakes apparently does nothing at all'\n-- Mark Rutte",
"'Cogito Ergo Sum'",
"'Who wants to play an angel eventually plays the devil'\n-- Blaise Pascal",
"'Momento Mori'",
"'You can work all you want, but others decide your success'\n-- Jeroen Broks",
"'Is love for quick money as blind as love for somebody of the opposite sex?'\n Aziëlla of the House of Rayal",
"'Alea Iacta Est'\n-- Julius Caesar",
"'Freedom can never exist without the freedom to choose your own religion'\n-- Willem van Oranje",
"'A few false notes are only messy. Music without feeling is unforgivable'\n-- Richard Wagner",
"'A shortcut is the longest distance between two points'",
"'Whenever can go wrong, it will go wrong.\nIf there is a worst time and worst place something can go wrong it will go wrong on that time and place'\n-- Murphy's law",
"'If you treat people like monsters, they'll eventually become the monsters you made out of them!'\n-- Jeroen Broks",
"'The biggest threat to democracy is democracy itself'\n-- Jeroen Broks",
"'The lie is ruling'\n-- Queen Beatrix of the Netherlands",
"'Fear leads to anger, anger leads to hate, and hate leads to suffering'\n-- Yoda",
"'No girl should ever forget that she doesn't need anyone who doesn't need her.'\n-- Marilyn Monroe",
"'Binaries for Linux desktop applications is a major f***g pain in the ass.'\nLinus Torvalds",
"'Artificial intelligence could spell the end of the human race\n-- Stephen Hawking'",
"'Assembly language programming is an extravagant waste of human talent and should be avoided whenever possible.'\n— Peter Norton",
"\“Debugging is twice as hard as writing the code in the first place.\nTherefore, if you write the code as cleverly as possible, \nyou are, by definition,\nnot smart enough to debug it.\”\n-- Brian Kernighan",
"'The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence.'\n-- Edsger Dijkstra"
]
i = Math.floor(Math.random()*quotes.length);
console.log(quotes[i]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment