Skip to content

Instantly share code, notes, and snippets.

@elizabethsiegle
Last active June 2, 2016 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elizabethsiegle/6673c5b402bc184a2cf1eb058724f2f2 to your computer and use it in GitHub Desktop.
Save elizabethsiegle/6673c5b402bc184a2cf1eb058724f2f2 to your computer and use it in GitHub Desktop.
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