Skip to content

Instantly share code, notes, and snippets.

View mcneds's full-sized avatar

Aiden mcneds

  • Canada
View GitHub Profile
import math
#example values
R=60
Tw=R/2
W=30
L=45
θ=math.pi/4
import itertools
import matplotlib.pyplot as plt
import numpy as np
import sympy as sp
from matplotlib.patches import Polygon
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import tkinter as tk
from tkinter import ttk
min_side_length = 1
@mcneds
mcneds / polgonNcircle.py
Created April 5, 2023 06:22
inscribed circle tkinter
import tkinter as tk
import math
# define constants
CANVAS_WIDTH = 1200
CANVAS_HEIGHT = 720
DEFAULT_SIDES = 4
DEFAULT_LENGTH = 100
# initialize Tkinter
@mcneds
mcneds / hypixelapi.py
Created April 4, 2023 14:10
[hypixel skyblock] retrieve data of sacks given uuid and profile
import requests
import os
from dotenv import load_dotenv
load_dotenv("secrets.env")
api_key = os.getenv("HYPIXEL_API_KEY")
uuid = "78eac36d-1de3-48e9-8ef0-bd65d90953ef"
profile = "Banana"
item_name = "CRUDE_GABAGOOL"
crude_gabagool_count=0
//i dont know how to code
/draw rect (100, 100)