I'm in a hospital in Spain and my MacBook was stolen.
Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.
const mongoose = require('mongoose') | |
const moleculesPath = './../modules/' | |
const organellesPath = './../_organelles/' | |
module.exports = (DNA, Molecule) => { | |
const Organism = mongoose.model(DNA.name, Molecule) // deixar generico | |
const Organelles = require('./../_config/organism/organelles.default') | |
const OrganellesCell = |
var http = require('http'); | |
// Criando o servidor para o proxy | |
http.Server(function(req, res){ | |
res.writeHead(200, { | |
'Content-Type' : 'application/json; charset=utf-8', | |
'Transfer-Encoding' : 'chunked' | |
}); | |
setInterval(function(){ |
const groupBy = (xs, key) => xs.reduce((rv, x) => ({ | |
...rv, [x[key]]: [...(rv[x[key]] || []), x] | |
}), {}); |
I'm in a hospital in Spain and my MacBook was stolen.
Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.
#!/usr/bin/env node | |
var net = require('net'), | |
host = 'localhost', | |
start = 1, | |
end = 10000, | |
timeout = 15000; | |
while ( start <= end ) { | |
var port = start; |
const http = require('http') | |
const cpf = process.argv[2] | |
const url = 'http://dabsistemas.saude.gov.br/sistemas/sadab/js/buscar_cpf_dbpessoa.json.php?cpf=' | |
const consult = `${url}${cpf}` | |
let body = '' | |
http.get(consult, (res) => | |
res | |
.on('data', data => body += data) |
['suIssa', 'bEto', 'carlao', 'd'].map(item => item.split('').reverse().pop().toUpperCase()+item.slice(1).toLowerCase()) |
Testar/verificar a disposição dos elementos de uma determinada página em determinadas resoluções de tela.
Executar captura de telas de acordo com os viewports definidos em um script, com a ajuda do PhantomJS.
Necessário ter o NodeJS instalado.