Skip to content

Instantly share code, notes, and snippets.

View jubos's full-sized avatar
🍍

Curtis Spencer jubos

🍍
View GitHub Profile
function map(key,value) {
var json = JSON.parse(value);
var text = json.text;
if (text) {
words = text.split(/[\s\.:?!]+/)
for(var i=0; i < words.length; i++) {
var word = words[i];
if (word.indexOf('#') == 0)
Meguro.emit(word,'1');
}