Skip to content

Instantly share code, notes, and snippets.

View vinifig's full-sized avatar

Vinicius Figueiredo Rodrigues vinifig

View GitHub Profile
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
@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 = '';
@vinifig
vinifig / proxyLog.js
Created April 25, 2019 21:21
log system prototype based on aspect oriented programming
function fxabc (...params) { return params }
let fxabcArrow = (...params) => { throw new Error(JSON.stringify(params)) }
let runnerOperations = {
logger: (id) =>
(message) =>
console.log(`${id} - ${message}`),
run (fx, ...params) {
let logger = this.logger(Date.now());
@vinifig
vinifig / .gitconfig
Last active December 8, 2022 00:02
my git config template
[user]
name = <user>
email = <mail>
[alias]
co=checkout
st=status
up = !git fetch origin && git pull --rebase origin main
upto = !git fetch origin && git pull --rebase origin
sup = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
ammend = !git add -A; git commit --ammend --no-edit