Sandbox
- IT Todo
- New headingxx
- Section heading
- A wiki page — and a slide show too?
- Second slide: A list
- Third slide: An image
- Fourth slide: some (poignant) ruby
- Fifth slide: No, Learn You a Haskell
- Seventh Slide … for Great Good
- Eighth Slide: some math?
- Ninth slide: C!
- Credits
IT Todo
- get some wiki software, put in a VM
New headingxx
Two blank lines for starting the notes page. maybe?

picture of spaghetti
Section heading
Just export this page as Slidy (in the sidebar). Or click here to view it as a slide show now.
salut au monde ou comme le disent les anglo saxons HELLO WORLD
Subsection
Formatting: italics, bold, superscript, subscript, strikeout. A line break
can be forced with two spaces at the end of the line.
Indented quotation
Links: external, Wiki Link,
, to heading.
The title is Tony Benn or Pat.
Indented code block:
#include <stdbool.h>
Or use a delimited code block:
let a = 1:a in head a
- bulleted
- list
- ordered
- list (@@) sublist (indent 4 spaces) (@@) another
- item three
- term
- definition
- orange
- orange fruit
A wiki page — and a slide show too?
Second slide: A list
- one
- two
- buckle my shoe
Third slide: An image
What do we think about French cheeses?
Fourth slide: some (poignant) ruby
require 'wordlist'
# Get evil idea and swap in code words
print "Enter your new idea: "
idea = gets
code_words.each do |real, code|
idea.gsub!( real, code )
end
# Save the jibberish to a new file
print "File encoded. Please enter a name for this idea: "
idea_name = gets.strip
File::open( "idea-" + idea_name + ".txt", "w" ) do |f|
f << idea
end
Fifth slide: No, Learn You a Haskell
import System.IO
main = do
handle <- openFile "girlfriend.txt" ReadMode
contents <- hGetContents handle
putStr contents
hClose handle
Running it, we get the expected result:
$ runhaskell girlfriend.hs
Hey! Hey! You! You!
I don't like your girlfriend!
No way! No way!
I think you need a new one!
Seventh Slide … for Great Good
-- Let's use a fold to implement searching a list for a sublist.
search :: (Eq a) => [a] -> [a] -> Bool
search needle haystack = foldl length_test False (tails haystack)
where length_test bool x =
if take needle_length x == needle then True else bool
needle_length = length needle
declaration :: String
declaration = "We hold these truths to be self-evident, " ++
"that all men are created equal"
Here we get the result:
ghci> search "elf" declaration
True
ghci> search "eat" declaration
True
Eighth Slide: some math?
With some inline: , and some displayed:
Doesn’t work yet in the S5 slide show, only plain webpages — need to add a link to jsMath!
Ninth slide: C!
#include <stdio.h>
int main(void)
{
printf("Hello World!");
return 0;
}
Credits
Thanks for random snippets to
Why’s (poignant) guide to ruby
and
Learn You a Haskell for Great Good!
Here is a footnote reference,1 and another.2
This paragraph won’t be part of the note, because it isn’t indented.
