This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
exports.createHandler = function (method) { | |
return new Handler(method); | |
} | |
Handler = function(method) { | |
this.process = function(req, res) { | |
params = null; | |
return method.apply(this, [req, res, params]); | |
} | |
} |
#------------------------------------------------------------------------------- | |
# lexer.py | |
# | |
# A generic regex-based Lexer/tokenizer tool. | |
# See the if __main__ section in the bottom for an example. | |
# | |
# Eli Bendersky (eliben@gmail.com) | |
# This code is in the public domain | |
# Last modified: August 2010 | |
#------------------------------------------------------------------------------- |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
Picking the right architecture = Picking the right battles + Managing trade-offs
var json = { | |
email : "santiago@konacloud.io", | |
name : "Santiago Cotto" | |
}; | |
var qr = require('qr-image'); | |
var mongoose = require('mongoose'); | |
var image = qr.imageSync(JSON.stringify(json), { type: 'png', size : 10 }); | |
var Grid = require('gridfs'); |