Skip to content

Instantly share code, notes, and snippets.

View luis-c465's full-sized avatar
๐Ÿ’€

Luis Canada luis-c465

๐Ÿ’€
View GitHub Profile
@luis-c465
luis-c465 / main.ino
Created February 14, 2025 04:15
Arduino flappy bird code
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
@luis-c465
luis-c465 / convert.py
Created March 21, 2024 14:00
Replaces exponential form of numbers in an svg with their decimal format, `3e-5` => `0.00003`
import decimal
import re
INPUT_FILE = "input.svg"
OUTPUT_FILE = "output.svg"
DECIMAL_DIGITS = 10
REGEX = r"[0-9.]+e-\d+"
# https://regex101.com/r/9SaiS7/1
@luis-c465
luis-c465 / ppo_connect_four.ipynb
Created October 24, 2023 21:55
Action Masked PPO for Connect Four in Jyupter Notebook Form
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Name: Github Notifications
// Description: Browse, preview and open your GitHub notifications
// Author: TAKANOME DEV
// Twitter: @takanome_dev
// Github: @TAKANOME-DEV
import "@johnlindquist/kit";
import { Endpoints } from "@octokit/types";
const { Octokit }: typeof import("octokit") = await npm("octokit");