Skip to content

Instantly share code, notes, and snippets.

View im-alexandre's full-sized avatar

Alexandre Castro im-alexandre

  • Marinha do Brasil
  • Rio de Janeiro
View GitHub Profile
@im-alexandre
im-alexandre / config.md
Last active October 25, 2023 16:27
Correção do dactyl com pro micro

Adicionar o seguinte ao arquivo keyboards/handwired/dactyl_manuform/5x6/config.h

#define EE_HANDS
#define SOFT_SERIAL_PIN D0
#define SPLIT_USB_DETECT

Configurar o teclado utilizando o qmk.fm e baixar o json

Para transformar o json em c:

@im-alexandre
im-alexandre / async_download_files.py
Created January 18, 2022 12:31 — forked from darwing1210/async_download_files.py
Script to download files in a async way, using Python asyncio
import os
import asyncio
import aiohttp # pip install aiohttp
import aiofiles # pip install aiofiles
REPORTS_FOLDER = "reports"
FILES_PATH = os.path.join(REPORTS_FOLDER, "files")
def download_files_from_report(urls):
function soma (a, b) {
return a+b
}
@im-alexandre
im-alexandre / install_pyenv.sh
Created March 31, 2020 17:08 — forked from jmvrbanac/install_pyenv.sh
Install pyenv on Ubuntu
#!/bin/bash
sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl
sudo pip install virtualenvwrapper
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
@im-alexandre
im-alexandre / ofx2csv.py
Created January 2, 2020 17:58 — forked from whistler/ofx2csv.py
Convert QFX/OFX to CSV
from csv import DictWriter
from glob import glob
from ofxparse import OfxParser
DATE_FORMAT = "%m/%d/%Y"
def write_csv(statement, out_file):
print "Writing: " + out_file
fields = ['date', 'payee', 'debit', 'credit', 'balance']
with open(out_file, 'w') as f: