Code blocks:
<div>
hello!
</div>| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title> Hangman Solution</title> | |
| </head> | |
| <body> | |
| <div id="container"> | |
| <p id="message"></p> | |
| <img id="hangman" src="https://github.com/ScriptEdcurriculum/solutions2016/blob/master/year1/unit13/project2/images/Hangman-0.png?raw=true"/> | |
| <div id="word"></div> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Hangman Starter</title> | |
| </head> | |
| <body> | |
| <div id="container"> | |
| <p id="message"></p> | |
| <img id="hangman" src="https://github.com/ScriptEdcurriculum/solutions2016/blob/master/year1/unit13/project2/images/Hangman-0.png?raw=true"/> |
| object Hacking extends App { | |
| val input = "ojvtpuvg" | |
| val messageDigest = java.security.MessageDigest.getInstance("md5") | |
| val emptyPassword: Seq[Option[Char]] = Seq(None, None, None, None, None, None, None, None) | |
| def fiveZeroesIterator(id: String): Iterator[String] = { | |
| Iterator.from(0) | |
| .map {id + _} |
| import scala.io.Source | |
| object Obscurity extends App { | |
| type ParsedLine = (String, Integer, String) | |
| val filename = "input.txt" | |
| // parsing "aaaaa-bbb-z-y-x-123[abxyz]", where the first part has an | |
| // arbitrary number of hyphenated sections | |
| val parser = "([\\w-]+)-(\\d+)\\[(\\w{5})\\]".r |