This file contains hidden or 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 fs = require('fs'); | |
var StringDecoder = require('string_decoder').StringDecoder; | |
var Transform = require('stream').Transform; | |
var util = require('util'); | |
util.inherits(DatasetParser, Transform); | |
function DatasetParser(options) { | |
if (!(this instanceof DatasetParser)) | |
return new DatasetParser(options); |
This file contains hidden or 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 AWS = require('aws-sdk'); | |
var _ = require('lodash'); | |
AWS.config.update({ | |
accessKeyId: 'FIXME', | |
secretAccessKey: 'FIXME' | |
}); | |
var route53 = new AWS.Route53(); |
This file contains hidden or 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 zmq = require('zmq'); | |
/** | |
* Publish Message to Subscriber | |
*/ | |
var publisher = zmq.socket('pub'); | |
publisher.bind('tcp://*:8688', function(err) { | |
if (err) { | |
return console.log(err); | |
} |