Skip to content

Instantly share code, notes, and snippets.

View Baco23's full-sized avatar

Antonio Marcos Baco23

  • Rio de Janeiro
View GitHub Profile
@konexis
konexis / gist:8abd25b49dc15231cd7b8f12c5d822c3
Last active October 18, 2022 19:34
Imposto de Renda - Bens e Direitos
import pyautogui
import pandas as pd
from time import sleep
df = pd.read_excel(r'diretorio da planilha')
cod_IRs = df['cod_IR']
codigo_ativos = df['codigo_ativo']
cnpj_empresas = df['cnpj_empresa']
nome_empresas = df['nome_empresa']
@codeguy
codeguy / slugify.js
Created September 24, 2013 13:19
Create slug from string in Javascript
function string_to_slug (str) {
str = str.replace(/^\s+|\s+$/g, ''); // trim
str = str.toLowerCase();
// remove accents, swap ñ for n, etc
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;";
var to = "aaaaeeeeiiiioooouuuunc------";
for (var i=0, l=from.length ; i<l ; i++) {
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i));
}