Skip to content

Instantly share code, notes, and snippets.

@wende
Created April 16, 2015 14:50
Show Gist options
  • Save wende/fd3cbb542b9bb019a538 to your computer and use it in GitHub Desktop.
Save wende/fd3cbb542b9bb019a538 to your computer and use it in GitHub Desktop.
send(msg, date) ->
DB.add(msg, date)
poll(lastMsgDate) ->
return DB.getAll.filter( _.data > lastMsgDate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment