Prettified the slide
authorNeil Smith <neil.git@njae.me.uk>
Fri, 7 Mar 2014 23:01:24 +0000 (18:01 -0500)
committerNeil Smith <neil.git@njae.me.uk>
Fri, 7 Mar 2014 23:01:24 +0000 (18:01 -0500)
slides/caesar-encipher.html
slides/caesarwheel1.gif [new file with mode: 0644]

index 4f99cc2e34f4f7f3e364ee1bb457cbe6a2ba24a3..1cdf8ddf0ad3cc22da75e10f27385c2f569ce118 100644 (file)
@@ -5,15 +5,36 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
     <style type="text/css">
       /* Slideshow styles */
+      body {
+        font-size: 20px;
+      }
+      h1, h2, h3 {
+        font-weight: 400;
+        margin-bottom: 0;
+      }
+      h1 { font-size: 4em; }
+      h2 { font-size: 2em; }
+      h3 { font-size: 1.6em; }
+      a, a > code {
+        /* color: rgb(249, 38, 114); */
+        text-decoration: none;
+      }
+      code {
+        -moz-border-radius: 5px;
+        -web-border-radius: 5px;
+        background: #e7e8e2;
+        border-radius: 5px;
+        font-size: 16px;
+      }
     </style>
   </head>
   <body>
     <textarea id="source">
 
-class: center, middle
-
 # Caesar ciphers
 
+![centre-aligned Caesar wheel](caesarwheel1.gif)
+
 * Letter-by-letter enciphering
 
 ---
@@ -77,7 +98,8 @@ for p in plaintext:
 ## Good (but unPythonic)
 
 ```python
-ciphertext = map(lambda p: caesar_encipher_letter(p, key), plaintext)
+ciphertext = map(lambda p: caesar_encipher_letter(p, key), 
+                plaintext)
 ```
 
 ---
@@ -87,7 +109,8 @@ ciphertext = map(lambda p: caesar_encipher_letter(p, key), plaintext)
 ## Best
 
 ```python
-ciphertext = [caesar_encipher_letter(p, key) for p in plaintext]
+ciphertext = [caesar_encipher_letter(p, key) 
+                for p in plaintext]
 ```
 
 
diff --git a/slides/caesarwheel1.gif b/slides/caesarwheel1.gif
new file mode 100644 (file)
index 0000000..05da1b7
Binary files /dev/null and b/slides/caesarwheel1.gif differ