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 / 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
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");