Skip to content

Instantly share code, notes, and snippets.

@skippy123
skippy123 / interview
Created May 6, 2016 16:07
Interview questions for python Web services Backend Dev
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
#
@skippy123
skippy123 / index.js
Last active July 6, 2016 15:36
requirebin sketch
// 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",
@skippy123
skippy123 / gulp pipe debugger
Created November 2, 2016 15:47
gulp task debugging
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');