Skip to content

Instantly share code, notes, and snippets.

View brusangues's full-sized avatar
😀

Bruno S Rodrigues brusangues

😀
View GitHub Profile
@brusangues
brusangues / optuna.ipynb
Created April 7, 2025 11:47
optuna.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brusangues
brusangues / preprocessing.ipynb
Last active March 20, 2025 12:25
preprocessing.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brusangues
brusangues / metricas-e-kfold.ipynb
Created February 21, 2025 16:59
metricas-e-kfold.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brusangues
brusangues / telegram_bot.py
Created February 8, 2025 13:10
Bot do telegram para interagir com llms locais.
# pip install python-telegram-bot
import os
import traceback
from telegram import Update
from telegram.ext import (
Application,
CommandHandler,
CallbackContext,
MessageHandler,
@brusangues
brusangues / clusteriza-o.ipynb
Created February 7, 2025 03:46
clusterização.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brusangues
brusangues / rag_faiss.py
Created January 29, 2025 01:19
Sistema simples de RAG local utilizando modelos que rodam em gpus de no mínimo 2GB de VRAM.
# Requirements
# jupyter
# langchain
# langchain-community
# langchain-text-splitters
# langchain-huggingface
# langgraph
# huggingface_hub[cli]
# transformers >= 4.43.0
# pandas
@brusangues
brusangues / ridge_vs_lasso.ipynb
Last active January 27, 2025 17:29
ridge_vs_lasso
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brusangues
brusangues / 21_06_07-lstm-si.ipynb
Created July 13, 2022 14:19
21_06_07 LSTM SI.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brusangues
brusangues / apply-md5.py
Created July 5, 2021 20:33
Python code to search emails in csv, xlsx and json files; split email into name and domain; and apply md5 hash to the name, name in uppercase and name in lowercase; returning them in csv format.
# Python code to search emails in csv, xlsx and json files;
# split email into name and domain;
# and apply md5 hash to the name, name in uppercase and name in lowercase;
# returning them in csv format.
import hashlib
import re
import csv
import glob
import pandas as pd
@brusangues
brusangues / proxy.py
Last active February 12, 2022 11:00 — forked from darkwave/proxy.py
Python 2.7 proxy server for HTTP GET
# Python Web Proxy for HTTP GET
# UFABC 2021 Computer Networks Project
# Inspired by: https://gist.github.com/darkwave/52842722c0c451807df4
# Imports
if 1:
import sys
import socket
import time # for delay
import select # selection of available sockets