01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140
Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.
[Laughter]
| <?php | |
| namespace Auctane\Api\Controller\Auctane; | |
| use Exception; | |
| use Magento\Framework\App\CsrfAwareActionInterface; | |
| use Magento\Framework\App\Request\InvalidRequestException; | |
| use Magento\Framework\App\RequestInterface; | |
| class Index extends \Magento\Framework\App\Action\Action implements CsrfAwareActionInterface | |
| { |
| #!/usr/bin/python | |
| from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
| PORT_NUMBER = 31337 | |
| class myHandler(BaseHTTPRequestHandler): | |
| #Handler for the GET requests | |
| def do_GET(self): | |
| self.send_response(200) |
| HANGMANPICS = [''' | |
| +---+ | |
| | | | |
| | | |
| | | |
| | | |
| | | |
| =========''', ''' | |
| +---+ |
| ;; | |
| ;; NS CHEATSHEET | |
| ;; | |
| ;; * :require makes functions available with a namespace prefix | |
| ;; and optionally can refer functions to the current ns. | |
| ;; | |
| ;; * :import refers Java classes to the current namespace. | |
| ;; | |
| ;; * :refer-clojure affects availability of built-in (clojure.core) | |
| ;; functions. |