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
| """ | |
| Generate icons for a Tauri Application | |
| ---------------------- | |
| By Ibai Farina | |
| For correct functionality, the base logo should be 512x512 or larger (keeping the aspect ratio). | |
| """ | |
| __title__ = 'Tauri Icon Generator' | |
| __author__ = 'Ibai Farina' | |
| __license__ = 'MIT' |
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 pymem | |
| import pymem.process | |
| PROC_NAME = "BloonsTD6.exe" | |
| MOD_NAME = "GameAssembly.dll" | |
| BASE_OFFSET = 0x02AE9538 | |
| CASH_OFFSET = [0x1D8, 0x2B8, 0x18, 0x30, 0x10, 0x20] | |
| def read_offsets(pm_instance, base, offsets): |
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 re | |
| import string | |
| import random | |
| import requests | |
| def username_gen(length=24, chars=string.ascii_letters + string.digits): | |
| return ''.join(random.choice(chars) for _ in range(length)) | |
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 random | |
| import sys | |
| from typing import List, Dict, Union | |
| class InsufficientFunds(Exception): | |
| pass | |
| class Options: |
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 mergesort(array: list): | |
| """ | |
| Sorts an array in ascending order using the merge sort algorithm. | |
| The array is recursively split into two halves until each half contains a single element. | |
| Then, these halves are merged back together in sorted order using the `merge` function. | |
| Parameters | |
| ---------- | |
| array : list |
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 whisperx | |
| import torch | |
| from deep_translator import GoogleTranslator | |
| import datetime | |
| # --- CONFIG --- | |
| DEVICE = "cuda" if torch.cuda.is_available() else "cpu" | |
| COMPUTE_TYPE = "float16" if DEVICE == "cuda" else "int8" |
OlderNewer