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 main(): | |
print("Quadratic equation solver\n") | |
print("Enter equation:") | |
print(" - equation: a X^2 + b X + c = 0") | |
a = float(input(" - coefficient a: ")) | |
b = float(input(" - coefficient b: ")) | |
c = float(input(" - coefficient c: ")) | |
solutions = solve_quadratic(a, b, c) | |
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 os | |
import random | |
def main(): | |
print("#################### Rename Random ####################\n") | |
print("WARNING: This tool randomly renames all items in the\ngiven directory (while preserving file extensions)\n") | |
path = input("Enter directory path: ") | |
path = os.path.abspath(path) |
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 ctypes | |
def main(): | |
# load the user32 library | |
user32 = ctypes.windll.user32 | |
# constants | |
HWND_BROADCAST = 0xFFFF | |
WM_SYSCOMMAND = 0x0112 |
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 functools | |
import os | |
import re | |
def main(): | |
input_file = input("Input VTT file: ") | |
output_file = input("Output SRT file: ") | |
if os.path.exists(output_file): |
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 itertools | |
import threading | |
import time | |
import keyboard | |
import mouse | |
RUNNING = False |