Skip to content

Instantly share code, notes, and snippets.

@mlenkeit
mlenkeit / git.js
Created October 19, 2018 08:08
Update Solution Branches
/*eslint no-console:0*/
'use strict';
const assert = require('assert');
const execSync = require('child_process').execSync;
const cmd = process.argv[2];
const validCmds = ['usb', 'fpa', 'pull-all', 'hard-reset-all', 'ls-branches'];
if (!cmd || !validCmds.find(validCmd => validCmd === cmd)) {
@mlenkeit
mlenkeit / test.md
Created August 31, 2018 13:38
Syntax Highlighting Util
$ docker-compose up
@mlenkeit
mlenkeit / index.js
Created June 28, 2015 19:36
Package collision of mock-fs and body-parser
var bodyParser = require('body-parser');
var express = require('express');
var request = require('supertest');
var fs = require('mock-fs');
var app = express();
app.use(bodyParser.urlencoded({ extended: true }));
app.post('/bookmarks', function(req, res) {
if (req.body.url && req.body.tags) {
return res.sendStatus(201);