Skip to content

Instantly share code, notes, and snippets.

Avatar

Seth Tisue SethTisue

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

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?
View scalawags-17.md
View scalawags18.md
View gist:0a8cf256f9bcfc109755
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)}
}
View scalawags-19.md

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

@SethTisue
SethTisue / scalawags-21.md
Last active Aug 29, 2015
Scalawags #21 show notes
View scalawags-21.md

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
View wolf-sheep.html
<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 Aug 29, 2015
Scalawags #22: Heather Miller in a Pickle
View scalawags-22.md
View parse.scala
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] =
View scalawags-23.md

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
You can’t perform that action at this time.