sudo nano /etc/default/keyboard
altere e reboot
XKBMODEL="abnt2"
XKBLAYOUT="br"
XKBVARIANT=""
XKBOPTIONS="lv3:alt_switch,compose:rctrl"
var req = new XMLHttpRequest(); | |
var data = {}; | |
if('withCredentials' in req){ | |
req.open('GET', 'https://api.blinktrade.com/api/v1/BRL/ticker', true); | |
req.setRequestHeader('Content-Type', 'application/json'); | |
req.onreadystatechange = function() { | |
if (req.readyState === 4) { | |
if (req.status >= 200 && req.status < 400) { | |
data = req.responseText; | |
console.log(req.response); |
// The callback funciton | |
function yourFunction (data) { | |
//console.log(data); | |
} | |
// create <script> | |
var myScript = document.createElement('SCRIPT'); | |
// set the src URL with ?callback=yourFunction | |
myScript.src = 'http://example.com/api/user?callback=yourFunction'; | |
// get the <head> | |
var head = document.getElementsByTagName('head')[0]; |
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) |
<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> |
sudo nano /etc/default/keyboard
altere e reboot
XKBMODEL="abnt2"
XKBLAYOUT="br"
XKBVARIANT=""
XKBOPTIONS="lv3:alt_switch,compose:rctrl"
{ | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"fallback_encoding": "UTF-8", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules", |
{ | |
"env": { | |
"node": true, | |
"es6": true | |
}, | |
"extends": "airbnb-base", | |
"rules": { | |
"no-console": [ | |
"error" | |
], |
// 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}`); | |
} | |
}); |
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]; |