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 _ = require('lodash'); // 4.0.1 | |
// filter implementations doesn't matter right now | |
var _method = function (method, handler) { | |
return function (req, res, next) { | |
console.log('_method middleware', method); | |
handler(req, res, next); | |
// or call next() | |
} |
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
// inspired by @theonemule (Blaize Stewart) via https://www.wintellect.com/data-binding-pure-javascript/ | |
window.Binding = (function () { | |
var bindingStore = {}; | |
function Binding(prop, obj) { | |
if (!obj) { | |
obj = bindingStore; | |
bindingStore[prop] = undefined; | |
} |
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 http = require('http'); | |
var createProxyMiddleware = require('./proxy_middleware'); | |
/* | |
/etc/hosts | |
127.0.0.1 hostA | |
127.0.0.1 hostB | |
*/ |
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
{ | |
Title: 'My awesome markdown file', | |
Author: 'Me', | |
Scripts: [ | |
'js/doStuff.js', | |
'js/doMoreStuff.js' | |
] | |
} |
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
#!/bin/bash | |
# build the SQLCipher .c/.h files | |
git clone https://github.com/sqlcipher/sqlcipher.git | |
cd sqlcipher | |
./configure --enable-tempstore=yes --enable-fts5 CFLAGS="-DSQLITE_HAS_CODEC" | |
make sqlite3.c | |
# prepend better-sqlite3 configuration | |
# https://github.com/JoshuaWise/better-sqlite3/blob/v5.0.1/docs/compilation.md |
OlderNewer