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
from math import sin, cos, pi, sqrt, atan2, acos | |
from enum import Enum | |
import time | |
clipboard = None | |
try: | |
clipboard = __import__("clipboard") | |
except ModuleNotFoundError: | |
print("Module `clipboard` not found.\nThe clipboard module would automatically copy the output of the script to your clipboard.\nTo install, run `pip install clipboard` in a cmd (this is not a requirement)") |
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
from math import sin, pi | |
DELTA_TIME = 0.016666699201 # the exact in-game value when running at 60fps | |
MAX_ANGLE_CHANGE_INV_SPEED_FACTOR = 480.0 | |
MIN_SPEED = 64.0 | |
MAX_SPEED = 320.0 | |
DECEL = 165.0 | |
FAST_DECEL = 220.0 | |
ACCEL = 90.0 | |
STABLE_ANGLE = 0.2 |
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 json | |
import requests | |
###### FOR FUTURE USERS | |
# This code grabs your BeatLader score and generates play information for your AppData folder. | |
# The goal is that if you accidentally wiped your PC clean or something and lost your appdata folder, | |
# you can run this code to get your PBs back. This is the vanilla portion only- the stuff that | |
# displays your max combo, highscore, max rank, and play count at the bottom of the leaderboard. | |
# I doubt anyone needs it but if someone does hit me up on discord "megamaz" and I'll write | |
# some code that generates a SongPlayHistory json file that you can shove into your UserData. |
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
# Download your data dump and place this file in the "messages" folder of your data dump. | |
# Run it using python | |
from datetime import datetime, timedelta, timezone | |
import matplotlib.pyplot as plt | |
import matplotlib.ticker as ticker | |
import matplotlib.dates as mdates | |
import csv | |
import json | |
import os |
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
# This is a direct copy / paste of my VERY FIRST PYTHON CODE!! | |
# I will NOT improve on it. My English wasn't very good either at the time. | |
name= input("What is your name, coder? ") | |
print("Oh, hi "+ name+"!") | |
feel=input("how are you doing "+name+"?") | |
print("you are doing "+feel+".") | |
feel_answer= input("What makes you doing "+feel+"? (in one word, as a verb please)") | |
print("you are doing "+feel+" because you are "+feel_answer+".") | |
right= input("right?") |
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
print("FUN FACT ABOUT THIS CALCULATOR!") | |
import random | |
print() | |
print("---------------------------------------------------------------------------") | |
fact = random.randint(1, 3) | |
if fact == 1: | |
print("This calculator has 70 lines of code!") | |
if fact == 2: | |
print("The exponant had an error, which was fixed after 5 days.") | |
if fact == 3: |
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 time, requests, sys | |
print("\n"*100) | |
url = str(input("INSERT URL HERE: ")) | |
if url[:8] != "https://": | |
if url[:7] != "http://": | |
print("not a url.") | |
sys.exit(0) | |
sys.exit(0) | |
while True: |
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 ctypes | |
import sys | |
""" | |
Graphing made simpler | |
INTS | |
---- | |
Used for points (X, Y) or size of graph | |
""" | |
graphs = [] | |
# 'graphs' list is using nested tuples like this: |
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 random | |
import time | |
import sys | |
best = open("shot.txt", "a+") | |
sleeptime = float(input("Enter how much time in between dialogues: ")) | |
time_lived = 0 | |
ammo = 6 | |
print("\n" * 100) | |
def Print(script): | |
print("/ " + ((len(script) + 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 random | |
import time | |
battleHappen = False | |
card = [14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2] | |
player1 = input("What is player one's name? ") | |
player2 = input("What is player two's name? ") | |
print() | |
print("Hello " + player1 + " and " + player2 + ". Welcome to battle.") |
NewerOlder