Skip to content

Instantly share code, notes, and snippets.

@abhinavsharma
Last active January 3, 2016 12:19
Show Gist options
  • Save abhinavsharma/8461652 to your computer and use it in GitHub Desktop.
Save abhinavsharma/8461652 to your computer and use it in GitHub Desktop.
(function() {
var request = require('request');
var count = 0;
var FREQ = 1000;
setInterval(
function() {
request.post(
'http://suitsoncampus.com/nominate/saved', {
form: {
'school': 'Carnegie Mellon University'
}
}, function(error, response, body) {
if (response.statusCode === 200) {
console.log(++count + ' votes');
}
});
}, FREQ
);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment