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 through = require('through2') | |
.pipe(through.obj(function (chunk, enc, cb) { | |
console.log(chunk._contents.toString()) | |
cb(null, chunk) | |
})) | |
function buildUserscript() { | |
// Helpers | |
gutil.log('Building userscript'); |
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
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
var config = { | |
debug: true, | |
url: "https://localhost:3001", | |
routes: { | |
bundled_message_url: "/", | |
login: "/login", | |
get_user_config: "/getUserConfig", |
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
http://collabedit.com/kj92a | |
Given a yaml file or a json file like below, expose a dict object that can | |
be used to hold file's contents in memory and access it's differnt elements. | |
#Sample content: | |
#logging: | |
# file: service.log | |
# level: INFO | |
# |