Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tech Demo Night

Tech Demo Night

Demo of a project I'm working on

Zac Stewart

May 21, 2015
Tweet

More Decks by Zac Stewart

Other Decks in Programming

Transcript

  1. !"#

  2. And$execute$some$more$JavaScript… if (!state.winner) { var matches = input.data.body && input.data.body.match(/guess:

    (\d+)/i); var guess = matches && parseInt(matches[1], 10) if (guess === 6) { state.winner = input.data.from; output.emit({to: input.data.from, subject: "You win!", body: "Enjoy this free email!"}); } }