Skip to content

Instantly share code, notes, and snippets.

View plotchy's full-sized avatar
🕵️‍♂️

plotchy plotchy

🕵️‍♂️
View GitHub Profile
@plotchy
plotchy / curta12.py
Created June 1, 2023 14:21
Curta 12 Labyrinth solver
import sha3
import heapq
my_address = "00000000000000000000000097735c60c5e3c2788b7ee570306775e687095d19"
my_address_bytes = bytes.fromhex(my_address)
current_block = 17372613
def find_steps(start):
valid_steps = []
@plotchy
plotchy / pid.py
Created June 1, 2023 00:00
Ball-Chasing PID Controller Demo
import tkinter as tk
import random
class Application(tk.Frame):
kp = 0.01
ki = 0.0
kd = 0.0
prev_error_x = 0.0
prev_error_y = 0.0
sum_error_x = 0.0