Skip to content

Instantly share code, notes, and snippets.

@nbartlomiej
Created September 25, 2011 19:29
Show Gist options
  • Save nbartlomiej/1241020 to your computer and use it in GitHub Desktop.
Save nbartlomiej/1241020 to your computer and use it in GitHub Desktop.
Lisense API draft
var wordScanner = new Scanner(WORD_REGEXP);
var wordCounter = new Counter(wordScanner);
var wordNotifier = new Notifier(wordCounter);
wordNotifier.evaluate = function(wordCount){
if(wordCount>1000){
var n = new Notification("I am so not going to read it.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment