Skip to content

Instantly share code, notes, and snippets.

View SethTisue's full-sized avatar

Seth Tisue SethTisue

View GitHub Profile
@SethTisue
SethTisue / scalawags-16.md
Last active August 29, 2015 14:01
Scalawags #16: The Curse of the Excluded Middle

Scalawags #16: The Curse of the Excluded Middle

Daniel is AWOL. Seth is un-, er, no, self-employed — yeah, that's it.

The topic today: Erik Meijer’s “The Curse of the Excluded Middle”, published April 26 in ACM Queue. You can read it here: http://queue.acm.org/detail.cfm?id=2611829

Questions posed:

  • Who is this Erik Meijer fellow anyway?
  • What is the excluded middle?
@SethTisue
SethTisue / scalawags18.md
Last active August 29, 2015 14:03
Scalawags #18
@SethTisue
SethTisue / scalawags-19.md
Last active August 29, 2015 14:04
Scalawags #19

Scalawags #19: Five Years of Akka w/ Legendary Viktor Klang

Scalawags, not the podcast you come to for facts

Scalawags, the podcast that brings the Internet to its knees with double-digit live-viewing numbers!

with special guest Viktor Klang, man of Akka

youtube: https://www.youtube.com/watch?v=x9IxmgJNLbg

def parseProgram(s: String): Either[String, Program] = {
// use Stream so we don't keep parsing past the first error
val allLines: Stream[Either[String, Line]] =
s.split("""\n""")
.filter(_.nonEmpty)
.toStream
.map(parseLine)
sequence(allLines).right.map{goodLines =>
Program(goodLines.sortBy(_.number).toIndexedSeq)}
}
@SethTisue
SethTisue / scalawags-21.md
Last active August 29, 2015 14:06
Scalawags #21 show notes

Scalawags #21

Take special note of the masterfully smooth topic segues throughout.

YouTube link: https://www.youtube.com/watch?v=xYZ0ZctrgTg

intro (0:00)

  • Daniel is crushed by a giant cat
  • Seth dusts off his radio announcer voice
<html>
<head>
<script>useGoogleGraph = false</script>
<!--
Uncomment if you'd like to use google graphs!
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script>useGoogleGraph = true</script>
-->
</head>
@SethTisue
SethTisue / scalawags-22.md
Last active August 29, 2015 14:07
Scalawags #22: Heather Miller in a Pickle
type ParseState = Int
type ParseResult[A] = (A, ParseState)
type Parser[A] = ParseState => ParseResult[A]
def map[A, B](p: Parser[A])(fn: A => B): Parser[B] =
p(_) match {
case (a, n) => (fn(a), n)
}
def flatMap[A, B](p: Parser[A])(fn: A => Parser[B]): Parser[B] =

Scalawags #23: Lifting Antonio Salazar Cardozo

YouTube link: https://www.youtube.com/watch?v=-LG5qzGUVUE

Intro (0:00)

  • theme music by Dick Wall, human beatbox (don't quit your day job, Dick)
  • welcome Heather Miller, now an official Scalawag
  • we're aiming to do episodes more often, with a rotating crew of whoever's available