Skip to content

Instantly share code, notes, and snippets.

@nextred
nextred / Middleware.js
Created May 16, 2019 02:02 — forked from darrenscerri/Middleware.js
A very minimal Javascript (ES5 & ES6) Middleware Pattern Implementation
var Middleware = function() {};
Middleware.prototype.use = function(fn) {
var self = this;
this.go = (function(stack) {
return function(next) {
stack.call(self, function() {
fn.call(self, next.bind(self));
});
@nextred
nextred / README.md
Created October 6, 2018 14:11 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet