This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>thoughts</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<style> | |
#root { | |
max-width: 50rem; | |
margin-left: auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nextcord | |
from nextcord.ext import commands | |
import aiohttp | |
import os | |
import time | |
TESTING_GUILD_ID = ################ | |
bot = commands.Bot() | |
@bot.event |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# fix_mp3_duration.sh | |
# Remux MP3s in-place to correct duration metadata (e.g., missing/incorrect VBR headers) | |
# Uses ffmpeg stream copy (no re-encode) and forces writing a Xing header. | |
set -Eeuo pipefail | |
IFS=$'\n\t' | |
# ------------------------------- | |
# Config / Defaults |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from main import brain | |
import time | |
class Vec2D: | |
def __init__(self, x: float, y: float): | |
self.x = x | |
self.y = y | |
def __add__(self, other): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import cos, sin, exp, pi, sqrt, radians | |
from random import random # returns in [0, 1) | |
""" | |
A minimal reference implementation of Monte Carlo Localization for a VEX robot. | |
**DO NOT USE THIS. Here are 10 reasons why.** | |
1. Terrible performance, there are a lot of optimizations you can do. | |
2. I don't cut off gaussian after a maximum error (which most impls do). | |
3. Probably doesn't even compile lol | |
4. We are assuming that distance sensors all start from the same point, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
use core::{ | |
f64::consts::PI, | |
ops::{Add, Deref, Mul}, | |
}; | |
use vexide::{devices::{smart::imu::InertialError, PortError}, float::Float, prelude::*}; | |
#[derive(Debug, Clone, Copy, PartialEq)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script was generated by combining and prefixing multiple files. | |
# --- Combined External Imports --- | |
from vex import * | |
import math | |
# -------------------- Content from: helpers.py -------------------- | |
mod_e8b4e4b3_brain = Brain() | |
mod_e8b4e4b3_timer = Timer() | |
wait(50, MSEC) |
NewerOlder