Skip to content

Instantly share code, notes, and snippets.

@krainboltgreene
Created July 10, 2016 01:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krainboltgreene/9c873d6c16c8e34abb3a974e58637fce to your computer and use it in GitHub Desktop.
Save krainboltgreene/9c873d6c16c8e34abb3a974e58637fce to your computer and use it in GitHub Desktop.
// : String
const name = "Kurtis Rainbolt-Greene"
// : Array of String
const friends = [
"Jack",
"Jill"
]
// : String -> Boolean
const isJName = startsWith("J")
// : String -> Object where "name" is String, "age" is Integer
const fetch = (uuid) => database.table("users").where({id: uuid}).first()
// : Message as Map where "body" is String, "timestamp" is Date
// : History as Array of Message
// : History -> Integer
const analyze = (history) => withModel("slurs", history)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment