Skip to content

Instantly share code, notes, and snippets.

View joel-daros's full-sized avatar

Joel joel-daros

  • Blumenau, SC, Brazil
View GitHub Profile
@joel-daros
joel-daros / api.ts
Created April 1, 2024 15:00 — forked from DouglasdeMoura/api.ts
Tiny wrapper around fetch
// Extends the return of the HTTPError class
class HTTPError extends Error {
readonly response: any;
readonly status: number;
readonly statusText: string;
constructor(status: number, statusText: string, response: any) {
super(statusText);
this.status = status;
this.statusText = statusText;
@joel-daros
joel-daros / stranger_bot.py
Created March 28, 2023 12:06 — forked from ryujimorita/stranger_bot.py
Stranger Bot Code
import sys
from typing import Tuple
from time import sleep
from datetime import time, datetime, timezone, timedelta
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from joblib import Parallel, delayed
# params