Skip to content

Instantly share code, notes, and snippets.

View vinifig's full-sized avatar

Vinicius Figueiredo Rodrigues vinifig

View GitHub Profile
@vinifig
vinifig / sus_request.js
Last active December 5, 2016 02:15 — forked from Pompeu/cpf_consulta_api_sus.js
cpf_consulta_api_sus.js
'use strict';
const http = require('http');
const url = 'http://dabsistemas.saude.gov.br/sistemas/sadab/js/buscar_cpf_dbpessoa.json.php?cpf=';
function request(url){
return new Promise((resolve, reject)=>{
http.get(url+cpf, (res)=>{
let statusCode = res.statusCode;
let error = undefined;
let body = '';
import javax.imageio.*;
import java.awt.image.*;
import java.io.*;
import javax.swing.*;
import java.util.*;
import java.awt.*;
public class TrabalhoProcessamento {
public static void main (String[] args) {
/* Cria a janela e define a a��o ao clicar no bot�o de fechar e seu