Skip to content

Instantly share code, notes, and snippets.

View sfosdal's full-sized avatar

Steve Fosdal sfosdal

View GitHub Profile
@kelseyq
kelseyq / gist:d4a2c73a41609c563ad1
Last active January 24, 2016 18:51
witchy ScalaCheck examples
import org.scalacheck.Prop.forAll
import org.scalacheck.Properties
object ShakespeareSpec extends Properties("Bubble") {
def spell(words: List[String], mysticNumber: Int) =
mysticNumber.toString +
words.mkString + "toil" + "trouble"
property("bubble") = forAll { (a: List[String], b: Int) =>
@willurd
willurd / web-servers.md
Last active October 14, 2025 09:37
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000