Commands for run and consume a mongodb container
$ docker run -p 27017:27017 --name mongo_db -d fernandoguisso/mongodb
this.log.writeln('\n→ INITIAL SETTINGS'); | |
return this.prompt(questions) | |
.then((answers) => { | |
this.answers = answers; }) | |
.bind(this); |
const colors = { | |
Reset: "\x1b[0m", | |
Bright: "\x1b[1m", | |
Dim: "\x1b[2m", | |
Underscore: "\x1b[4m", | |
Blink: "\x1b[5m", | |
Reverse: "\x1b[7m", | |
Hidden: "\x1b[8m", | |
fg: { | |
Black: "\x1b[30m", |
const gulp = require('gulp'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const tasks = fs.readdirSync('./gulp-tasks/'); | |
let tasksName = []; | |
tasks.forEach( (task, i) => { | |
const taskName = task.split('.')[0]; |
// Call and export all models | |
fs.readdirSync('model').forEach(file => { | |
if (file !== 'db.connection.js') { | |
const moduleName = file.split('.')[0]; | |
exports[moduleName] = require(`model/${file}`); | |
} | |
}); |
{ | |
"env": { | |
"node": true, | |
"es6": true | |
}, | |
"extends": "airbnb-base", | |
"rules": { | |
"no-console": [ | |
"error" | |
], |
{ | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"fallback_encoding": "UTF-8", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules", |
sudo nano /etc/default/keyboard
altere e reboot
XKBMODEL="abnt2"
XKBLAYOUT="br"
XKBVARIANT=""
XKBOPTIONS="lv3:alt_switch,compose:rctrl"
<div id="todo-form" class="row"> | |
<div class="col-sm-8 col-sm-offset-2 text-center"> | |
<form> | |
<div class="form-group"> | |
<input type="text" class="form-control input-lg text-center" placeholder="Digite uma tarefa." ng-model="formData.item"> | |
</div> | |
<button type="submit" class="btn btn-primary btn-lg" ng-click="createItem()">Add</button> | |
</form> | |
</div> | |
</div> |
CXX(target) Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o | |
../node-icu-charset-detector.cpp:7:10: fatal error: 'unicode/ucsdet.h' file not found | |
#include <unicode/ucsdet.h> | |
^ | |
1 error generated. | |
make: *** [Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o] Error 1 | |
gyp ERR! build error | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) | |
gyp ERR! stack at emitTwo (events.js:100:13) |