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 argparse | |
| import glob | |
| import json | |
| import os | |
| import time | |
| from pathlib import Path | |
| import colorama | |
| import inquirer | |
| from colorama import Back, Fore, Style |
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 json, os, re, inquirer, sys, colorama, glob | |
| from colorama import Fore, Back, Style | |
| # requires the "inquirer" package, which can be installed from pip | |
| # check here for where your indexes folder is: | |
| # https://minecraft.fandom.com/wiki/Tutorials/Sound_directory | |
| # make sure the path ends in "indexes" when entering it | |
| try: |
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
| def find_missing(l,r): | |
| # finds items from "r" that are missing from "l" | |
| # l = (l)ist to be checked | |
| # r = (r)eference list to compare "l" to | |
| missing = [] | |
| for item in r: | |
| if item not in l: | |
| missing.append(item) | |
| return missing |
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
| # Organizes all files within a specified directory into folders corresponding to creation date. | |
| # e.g If a file's creation date is 2019-05-03, a "2019" folder will be created in the directory. | |
| # That folder will contain a "05 May" folder, and the file will be stored there. | |
| # Only tested on Windows 10 with Python 3.7 so far. | |
| # Can be run from anywhere. | |
| import os | |
| import tkinter as tk | |
| import sys |
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
| # Adds the creation date of a file (formatted to YYYY-MM-DD) to the beginning of all files within a specified directory. | |
| # Only tested on Windows 10 with Python 3.7 so far. | |
| # Can be run from anywhere. | |
| import os | |
| import tkinter as tk | |
| from tkinter import filedialog | |
| from datetime import datetime |
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
| def powers_of(num,amount): | |
| i=0 | |
| powers=[] | |
| while len(powers) < amount: | |
| if i % num == 0: | |
| powers.append(i) | |
| i+=1 | |
| return powers |
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
| # Small script that counts up to X, converted to base 10, hexadecimal, and binary, separated by commas | |
| # Mostly just something I did that I thought looked neat, not a ton of practical use to it | |
| import time | |
| start = input("start: ") | |
| end = input("end: ") | |
| # 0-256 as default | |
| if start=="": | |
| start = 0 |
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
| # Downloads images from Newgrounds links | |
| # So far only tested with Python 3.7 on Windows 10, works with every URL I've tried | |
| # Requires urllib, os, sys, beautifulsoup, & time modules | |
| # Requires wget to be installed on system | |
| # Example command: python newgnd-dl.py --batch=urls.txt --folder=Favorite_Stuff | |
| import urllib | |
| import os | |
| import sys |