Skip to content

Instantly share code, notes, and snippets.

@inlinestyle
inlinestyle / README.md
Last active September 13, 2017 02:38
Exported from Popcode. Click to import: http://localhost:3000/?gist=6ae9281b0885e59faa53c2d312fd650e

HTML, CSS, JS, and "foobarbaz" code blocks.

Code blocks:

<div>
  hello!
</div>
@inlinestyle
inlinestyle / README.md
Created September 10, 2017 14:24
Exported from Popcode. Click to import: http://localhost:3000/?gist=62d947667f4f217b8c8c6b8152ad1dfc

Sample with python block

Code blocks:

<div>
  hello!
</div>
@inlinestyle
inlinestyle / README.md
Last active September 1, 2017 02:18
Exported from Popcode. Click to import: http://localhost:3000/?gist=882e2a262c80045163efca50e519f34f

An h1 header

great wave!

Code blocks:

<div>
 hello!
@inlinestyle
inlinestyle / README.md
Last active September 10, 2017 14:17
Exported from Popcode. Click to import: http://localhost:3000/?gist=911a82a17a280545858d2d8ecc557ef3

HTML, CSS, JS, and unnamed code blocks.

Code blocks:

<div>
  hello!
</div>
@inlinestyle
inlinestyle / README.md
Last active August 17, 2017 01:56
Exported from Popcode. Click to import: http://localhost:3000/?gist=f72628405e55bea43267ed91f0bb92dc

An h1 header

(Short markdown sample)

2nd paragraph. Italic, bold, and monospace. Itemized lists look like:

  • this one
  • that one
@inlinestyle
inlinestyle / README.md
Last active September 10, 2017 14:15
Exported from Popcode. Click to import: http://localhost:3000/?gist=b2b6a8fa00f160e00ccf9ca0c1895994

Sample with python block

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"/>
@inlinestyle
inlinestyle / day5.scala
Created March 18, 2017 22:15
Advent Of Code Day 5
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 + _}
@inlinestyle
inlinestyle / day4.scala
Last active March 19, 2017 00:21
Advent of Code Day 4
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