One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
const curl = require("curl"); | |
const jsdom = require("jsdom"); | |
const url = "https://bauruempregos.com.br/home/vagas"; | |
curl.get(url, null, (err, resp, body) => { | |
if (resp.statusCode == 200) { | |
parseData(body); | |
} | |
}); | |
function parseData(html) { |
const fetch = require('node-fetch'); | |
const defer = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
if (true) { | |
resolve('Hello! It works!'); | |
} else { | |
reject('Error'); | |
} | |
}, 2000); | |
}); |
const url = ''; | |
const listar = () => { | |
fetch(url).then(function(response){ | |
response.json().then(function(result){ | |
for (var key in result) { | |
console.log(result[key].nome); | |
} | |
}) | |
}); | |
}; |
function removeAcento(text) | |
{ | |
text = text.toLowerCase(); | |
text = text.replace(new RegExp('[ÁÀÂÃ]','gi'), 'a'); | |
text = text.replace(new RegExp('[ÉÈÊ]','gi'), 'e'); | |
text = text.replace(new RegExp('[ÍÌÎ]','gi'), 'i'); | |
text = text.replace(new RegExp('[ÓÒÔÕ]','gi'), 'o'); | |
text = text.replace(new RegExp('[ÚÙÛ]','gi'), 'u'); | |
text = text.replace(new RegExp('[Ç]','gi'), 'c'); | |
return text; |
'use strict'; | |
const crypto = require('crypto'); | |
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bytes (32 characters) | |
const IV_LENGTH = 16; // For AES, this is always 16 | |
function encrypt(text) { | |
let iv = crypto.randomBytes(IV_LENGTH); | |
let cipher = crypto.createCipheriv('aes-256-cbc', new Buffer(ENCRYPTION_KEY), iv); |
function REMOVE_COLUNAS() { | |
var spreadsheet = SpreadsheetApp.getActive(); | |
var sheet = spreadsheet.getActiveSheet(); | |
spreadsheet.getRange('A:A').activate(); | |
spreadsheet.getActiveSheet().deleteColumns(spreadsheet.getActiveRange().getColumn(), spreadsheet.getActiveRange().getNumColumns()); | |
spreadsheet.getRange('E:E').activate(); | |
spreadsheet.getActiveSheet().deleteColumns(spreadsheet.getActiveRange().getColumn(), spreadsheet.getActiveRange().getNumColumns()); |
function remove_colunas(spreadsheet) { | |
spreadsheet.getRange('BN:BN').activate(); | |
spreadsheet.getActiveSheet().deleteColumns(spreadsheet.getActiveRange().getColumn(), spreadsheet.getActiveRange().getNumColumns()); | |
spreadsheet.getRange('BI:BI').activate(); | |
spreadsheet.getActiveSheet().deleteColumns(spreadsheet.getActiveRange().getColumn(), spreadsheet.getActiveRange().getNumColumns()); | |
spreadsheet.getRange('BD:BD').activate(); | |
spreadsheet.getActiveSheet().deleteColumns(spreadsheet.getActiveRange().getColumn(), spreadsheet.getActiveRange().getNumColumns()); |
const empresa = "cpfl paulista"; | |
const categoria = "luz"; | |
const valor = "187,47"; | |
const consumo = "224"; | |
const data_leitura = "25/01/2019"; | |
const data_emissao = "26/01/2019"; | |
const data_vencimento = "11/02/2019"; | |
const data_proxima_leitura = "24/02/2019" | |
const check_pagamento = "PAGO"; |
db.pessoa.update({nome: "Renan"}, {$inc: {sobrenome: "Santos"}}); | |
WriteResult({ | |
"nMatched": 0, | |
"nUpserted": 0, | |
"nModified": 0, | |
"writeError": { | |
"code": 14, | |
"errmsg": "Cannot increment with non-numeric argument: {sobrenome: \"Santos\"}" | |
}, | |
}) |