Ferramenta | Função | Uso |
---|---|---|
Toby | Compartilhamento de favoritos entre a equipe | Instale a extensão e peça a um dos membros para te adicionar |
zoom | Melhor ferramenta de videoconferência gratuita | Usado para reuniões de equipe, será enviado o link da sala antes de cada reunião |
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 formatMoney(n) { | |
return "R$ " + n.toFixed(2).replace('.', ',').replace(/(\d)(?=(\d{3})+\,)/g, "$1."); | |
} | |
// or (ES6) | |
const formatMoney = n => `R$ ${n.toFixed(2).replace('.', ',').replace(/(\d)(?=(\d{3})+\,)/g, "$1.")}` |
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
{"lastUpload":"2021-06-23T15:30:45.087Z","extensionVersion":"v3.4.3"} |
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 list = [1,2,3,4,5,6,7,8,9,10] | |
// Soma dos quadrados dos impares de 1 a 10 | |
const result = list | |
.filter(i => i % 2 === 1) | |
.map(i => i*i) | |
.reduce( (acc, cur) => acc + cur ) | |
console.log(result) |
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 comprarPao = (resolve, reject) => { | |
// resolve é uma função que envia o resultado final | |
// reject é uma função que envia o resultado de erro, caso ocorra | |
setTimeout(() => { | |
console.log("Pão comprado!") | |
resolve(5) // QUantidade de pães comprados | |
}, 3000) | |
} | |
const fazerHotdog = qtd => { |
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 import(dest, url) { | |
return function() { | |
$(dest).load(url) | |
} | |
} | |
$(import("#any-place", "../chart.html")) |
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 fs = require('fs') | |
const request = require('request') | |
const listaentrada = require('./data/ListaCompletaESC.json') | |
const entrestrings = (nastring, inicio, fim) => { | |
const test = nastring.match(new RegExp(inicio + '(.*)' + fim)) | |
if (test) { | |
let stringentre = nastring.match(new RegExp(inicio + '(.*)' + fim))[1] | |
stringentre = stringentre.trim() | |
return stringentre |
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
{ | |
"likes": 6, | |
"liked": false, | |
"comments": 3, | |
"target_id": "asdasd", | |
"target_class": "asdasdasddasd", | |
"action": { | |
"description": "user comment book Book", | |
"message": "Steamyhot's name is just a hint as to the world you are about to enter. With a fresh take on the mythology, she effortlessly pulls you into her world, a place where mates are fated, but not all fates are kind. The characters worm their ways into your hearts or make you wish you could put them over your knee and spank them... and that's just the start. Addictive only begins to describe her writing, dare to go there. I double DOG dare you.", | |
"time": "2018-02-17 09:42:23.555135", |
Essas são as configurações compartilhadas do meu vscode.
-
Instale a extensão: https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync
-
Faça as configurações descritas no README da extensão. Após isso você verá que seu private gist tera algumas informações
-
Copie as configurações desse arquivo para seus respectivos arquivos no private gist
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
module.exports = function(shipit) { | |
require('shipit-deploy')(shipit) | |
const ENV = process.env.NODE_ENV || 'development' | |
, config = require('./config').deploy | |
, NPM_BIN = config.NPM_BIN | |
, FOREVER_BIN = config.FOREVER_BIN | |
, SHIPIT_DIR = config.SHIPIT_DIR | |
, NODE_BIN = config.NODE_BIN | |
, branch = ENV === 'production' ? 'master' : 'dev' |