Skip to content

Instantly share code, notes, and snippets.

View fcavalcantirj's full-sized avatar

Felipe Cavalcanti fcavalcantirj

  • Rio de Janeiro, RJ
View GitHub Profile
I'll help you create an engaging "about" section for your website and Reddit app. Let me first check what your page is about to create something tailored and relevant.Based on your website about the "PEC da Bandidagem" voting analysis, here are polished "about" sections:
## For the Website (pec-bandidagem.vercel.app)
**About This Project**
This interactive platform provides a comprehensive analysis of voting patterns for the controversial Constitutional Amendment Proposal known as "PEC da Bandidagem" in Brazil's Chamber of Deputies. Through data visualization and statistical analysis, we reveal how 461 federal deputies voted across two rounds, uncovering fascinating patterns in parliamentary behavior.
Our analysis examines voting trends by political party, state representation, and ideological alignment, highlighting the deep divisions and surprising unanimities in Brazilian politics. From the 100% party discipline of certain groups to the complete 50-50 splits in others, from regional voting blocs to the
@fcavalcantirj
fcavalcantirj / README.md
Created May 31, 2025 22:33
description of repo https://github.com/fcavalcantirj/bruvtools/ after a scecific prompt on cursor.com

prompt;

Please carefully review and thoroughly understand the entire project. Once you have fully analyzed it, provide me with a clear and detailed explanation of its structure, key components, and overall purpose.

ran on;

https://github.com/fcavalcantirj/bruvtools/

result;

whatsapp name
557474839465 XYZ
55713936373 Lucas
5521983656474 AnaZZZ
@fcavalcantirj
fcavalcantirj / main.py
Created June 3, 2024 16:14
chatwith.io crawler - using waatMessenger to report
from selenium import webdriver
from selenium.webdriver.common.by import By
import selenium.common.exceptions
import time
import datetime
import requests
import logging
import pymongo
from pymongo import MongoClient
@fcavalcantirj
fcavalcantirj / bot.dalle2.js
Created December 22, 2022 00:49
Telegram bot that receives a message, generate image using dalle2 open api and returns
const { Configuration, OpenAIApi } = require("openai");
const TelegramBot = require('node-telegram-bot-api');
const token = process.env.TELEGRAM_API_KEY_DALLE2;
const bot = new TelegramBot(token, {polling: true});
const configuration = new Configuration({
apiKey: process.env.OPEN_AI_KEY,
});
const openai = new OpenAIApi(configuration);
@fcavalcantirj
fcavalcantirj / instaServer.js
Created October 27, 2020 20:22
POC to download instagram images without the API
const express = require('express')
const axios = require('axios');
const app = express()
const port = 3000
async function instagramPhotos (theProfile) {
// It will contain our photos' links
const res = []
try {
@fcavalcantirj
fcavalcantirj / exportToS3.py
Last active June 12, 2018 19:01
lambda function to export all logs from cloudWatch logGroup to s3Bucket. PS. Remember to set perms accordingly and to rename logGroupName, destinationPrefix, etc...
"""This is an function to export ALL logs from a logGroup to a s3 bucket.
Usage::
Just create a new lambda function and paste this code.
I also created a scheduled event with rate(1 hour)
"""
from __future__ import print_function
import boto3
import botocore.exceptions
@fcavalcantirj
fcavalcantirj / refreshTokens.py
Last active August 25, 2018 17:08
Lambda trigger to refresh access token users using refreshToken and initiate_auth API....
"""This is an function to get a new accessToken based on the refreshToken.
Usage::
Just create an resource and a method on the API Gateway,
integrate the request with this lambda function via console, and test it;
json used to test;
{
"refreshToken":"something"
@fcavalcantirj
fcavalcantirj / signOut.py
Last active September 11, 2019 13:37
Lambda trigger to signOut users using accessToken and global_sign_out API
"""This is an function to signOut users.
Usage::
Just create an resource and a method on the API Gateway,
integrate the request with this lambda function via console, and test it;
json used to test;
{
"access_token":"something"
@fcavalcantirj
fcavalcantirj / signIn.py
Last active November 28, 2019 21:55
Lambda trigger to signIn users
"""This is an function to signIn users.
Usage::
Just create an resource and a method on the API Gateway,
integrate the request with this lambda function via console, and test it;
json used to test;
{
"username":"something",