This file contains 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 math | |
#example values | |
R=60 | |
Tw=R/2 | |
W=30 | |
L=45 | |
θ=math.pi/4 |
This file contains 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 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 |
This file contains 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 tkinter as tk | |
import math | |
# define constants | |
CANVAS_WIDTH = 1200 | |
CANVAS_HEIGHT = 720 | |
DEFAULT_SIDES = 4 | |
DEFAULT_LENGTH = 100 | |
# initialize Tkinter |
This file contains 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 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 |
This file contains 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
//i dont know how to code | |
/draw rect (100, 100) |