Bootstrap 3 Bastar chamar a classe "centered" nas divs com a classe "col-lg-", "col-md-", "col-sm-" ou "col-xs-" (1-12).
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
https://notable.md/ |
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
const browser = await puppeteer.launch({headless: false, args:['--window-size=1000,600']}) | |
const page = await browser.newPage() | |
await page.setViewport({width: 1000, height: 600}) | |
await page.setJavaScriptEnabled(true) | |
let navigationPromise = page.waitForNavigation({ waitUntil: ["networkidle0"] }); | |
await page.goto('www.google.com.br') | |
await navigationPromise | |
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
{ | |
"todohighlight.keywords": [ | |
{ | |
"text": "TODO:", | |
"color": "BLACK", | |
}, | |
{ | |
"text": "FIXME:", | |
"color": "BLACK", | |
}, |
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
function groupListBy(lista, key){ | |
var camposAgrupados = [] | |
lista.forEach(function(e){ | |
if(!camposAgrupados.includes(e[key])){ | |
camposAgrupados.push(e[key]) | |
} | |
}) | |
var listaFinal = [] | |
camposAgrupados.forEach(function(campo){ | |
listaFinal.push( |
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
const sleep = m => new Promise(r => setTimeout(r, m)) | |
const funcaoComCallbackAsync = async (callback) => { | |
await sleep(1000) | |
console.log("3- Antes do callback"); | |
if (callback) {await callback()} | |
await sleep(1000) | |
console.log("5- Depois do callback"); | |
} |
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
# Listar os Emuladores | |
sudo ~/Android/Sdk/tools/emulator -list-avds | |
#Android7 | |
#Android8 | |
#Android9 | |
# Executa o emulador inserindo o nome dele após o "-avd" | |
sudo ~/Android/Sdk/tools/emulator -avd Android9 -gpu auto -netdelay none -netspeed full | |
# Nome do Emulador ==^ |
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
/** | |
* Returns a depply cloned object without reference. | |
* Copied from Vue MultiSelect and Vuex. | |
* @type {Object} | |
*/ | |
const deepClone = function (obj) { | |
if (Array.isArray(obj)) { | |
return obj.map(deepClone) | |
} else if (obj && typeof obj === 'object') { | |
var cloned = {} |
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
function MyError(message) { | |
this.name = 'MyError'; | |
this.message = message; | |
this.stack = (new Error()).stack; | |
} | |
MyError.prototype = new Error; // <-- remove this if you do not | |
// want MyError to be instanceof Error |
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
'use strict' | |
var Service = require('node-windows').Service; | |
// Create a new service object | |
var svc = new Service({ | |
name:'nome-serviço JS', | |
description: 'Serviço em NodeJS', | |
script: require('path').join(__dirname,'server.js') | |
}); | |
NewerOlder