Last active
June 2, 2016 09:22
-
-
Save elizabethsiegle/6673c5b402bc184a2cf1eb058724f2f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nbaChannel = 'NBAChannel'; | |
function publish2() { | |
pubnubEon.publish({ | |
channel: nbaChannel, | |
message: { | |
eon: { | |
"Splash Bros" : numSplashWords/totalNumTweets, | |
"Curry" : numCurryWords/totalNumTweets, | |
"Green" : numDraymondWords/totalNumTweets, | |
"Thompson" : numKlayWords/totalNumTweets, | |
"Barnes" : numHarrisonWords/totalNumTweets, | |
"Bogut" : numBogutWords/totalNumTweets, | |
"Iguodala" : numIguodalaWords/totalNumTweets, | |
} | |
}, //msg | |
callback: function(m){ | |
console.log(m) | |
} //callback | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment