Skip to content

Instantly share code, notes, and snippets.

Nate Wienert natew

Block or report user

Report or block natew

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:888b7e2e5bbbce0cd05e
store Tasks {
@tasks = []
@undone <- @tasks.filter(task => !task.done)
makeTask(task) { return { title: title, done: false } }
addTask() { @tasks.push(makeTask(task)) }
clear() { @tasks = @undone }
You can’t perform that action at this time.