Commit 7c589bb1 authored by Mariano Montone's avatar Mariano Montone
Browse files

Random Lisp quote in footer

parent 4cde3228
......@@ -5,6 +5,12 @@ $(document).ready(function(){
console.log(nextMenu.siblings(".menu").slideUp());
nextMenu.siblings(".menu").slideUp();
nextMenu.slideToggle();
})
});
/* Random Lisp quote in footer */
var $quotes = $('#quotes > div');
var $quote = $($quotes[Math.floor(Math.random() * $quotes.length)]);
});
\ No newline at end of file
$('#lisp-quote').html($quote.html());
});
......@@ -131,3 +131,29 @@ hr {
.carousel-indicators li.active {
background-color: #D9230F;
}
.lisp-quote {
float: right;
width: 50%;
margin-top: 10px;
}
.lisp-quote p {
margin: 0;
}
.quote-text {
font-style: italic;
float: right;
padding: 2px;
line-height: 15px;
text-align: right;
clear: both;
}
.quote-author {
float: right;
padding: 2px;
line-height: 15px;
clear:both;
}
......@@ -70,9 +70,96 @@
<footer class="footer border-top bg-light">
<div class="container">
&copy; 2014-2018 <a href="http://cl-foundation.org/">The Common Lisp Foundation</a>.
<div id="lisp-quote" class="lisp-quote">
</div>
</div>
</footer>
<div id="quotes" style="display: none;">
<div>
<p class="quote-text">
"Programs must be written for people to read, and only incidentally for machines to execute"
</p>
<p class="quote-author">- Abelson & Sussman, SICP, preface to the first edition</p>
</div>
<div>
<p class="quote-text">"That language is an instrument of human reason, and not merely a medium for the expression of thought, is a truth generally admitted."</p>
<p class="quote-author">- George Boole, quoted in Iverson's Turing Award Lecture</p>
</div>
<div>
<p class="quote-text">"the greatest single programming language ever designed"</p>
<p class="quote-author">- Alan Kay, on Lisp</p>
</div>
<div>
<p class="quote-text">"One of the most important and fascinating of all computer languages is Lisp (standing for "List Processing"), which was invented by John McCarthy around the time Algol was invented"</p>
<p class="quote-author">- Douglas Hofstadter, Godel, Escher, Bach</p>
</div>
<div>
<p class="quote-text">"Lisp is a programmable programming language."</p>
<p class="quote-author">- John Foderaro, CACM, September 1991</p>
</div>
<div>
<p class="quote-text">"Lisp isn't a language, it's a building material."</p>
<p class="quote-author">- Alan Kay</p>
</div>
<div>
<p class="quote-text">"Greenspun's Tenth Rule of Programming: any sufficiently complicated C or Fortran program contains an ad hoc informally-specified bug-ridden slow implementation of half of Common Lisp."</p>
<p class="quote-author">- Philip Greenspun</p>
</div>
<div>
<p class="quote-text">"Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot."</p>
<p class="quote-author">- Eric Raymond, "How to Become a Hacker"</p>
</div>
<div>
<p class="quote-text">"Lisp is a programmer amplifier."</p>
<p class="quote-author">- Martin Rodgers</p>
</div>
<div>
<p class="quote-text">"Common Lisp, a happy amalgam of the features of previous Lisps"</p>
<p class="quote-author">- Winston & Horn, Lisp</p>
</div>
<div>
<p class="quote-text">"Lisp doesn't look any deader than usual to me."</p>
<p class="quote-author">David Thornley</p>
</div>
<div>
<p class="quote-text">"SQL, Lisp, and Haskell are the only programming languages that I've seen where one spends more time thinking than typing."</p>
<p class="quote-author">- Philip Greenspun</p>
</div>
<div>
<p class="quote-text">"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it."</p>
<p class="quote-author">- Alan Kay</p>
</div>
<div>
<p class="quote-text">"The greatest single programming language ever designed."</p>
<p class="quote-author">- Alan Kay</p>
</div>
<div>
<p class="quote-text">"I object to doing things that computers can do."</p>
<p class="quote-author">- Olin Shivers</p>
</div>
<div>
<p class="quote-text">"Lisp is a language for doing what you've been told is impossible."</p>
<p class="quote-author">- Kent Pitman</p>
</div>
<div>
<p class="quote-text">"Lisp is the red pill."</p>
<p class="quote-author">- John Fraser</p>
</div>
<div>
<p class="quote-text">"Within a couple weeks of learning Lisp I found programming in any other language unbearably constraining."</p>
<p class="quote-author">- Paul Graham</p>
</div>
<div>
<p class="quote-text">"Programming in Lisp is like playing with the primordial forces of the universe. It feels like lightning between your fingertips. No other language even feels close."</p>
<p class="quote-author">- Glenn Ehrlich</p>
</div>
<div>
<p class="quote-text">"A Lisp programmer knows the value of everything, but the cost of nothing."</p>
<p class="quote-author">- Alan Perlis</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment