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 ast | |
import shelve | |
import time | |
from simple_term_menu import TerminalMenu | |
parser = argparse.ArgumentParser() | |
parser.add_argument('database') |
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 clr | |
import pyautogui | |
import pygame | |
from pygame.locals import * | |
clr.AddReference('System.Drawing') | |
clr.AddReference('System.Windows.Forms') | |
from System.Drawing import Point | |
from System.Windows.Forms import Cursor |
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
from __future__ import annotations | |
from typing import Any, Callable, Generator, Iterable, List, Literal, Sequence, Union | |
import random | |
class IntegerWrapper(int): | |
key: Any = None | |
# def __init__(self, val, key) -> None: | |
# super().__init__(val) | |
# self.key = key |
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 sys | |
import threading | |
import time | |
if sys.platform[:3] == 'win': | |
import winsound | |
import numbers | |
def get_slice_indices(sl: slice, leng: int): | |
sl_indices = sl.indices(leng) |
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 ast | |
import sys | |
binary_operator_classes = { | |
ast.Add: '+', | |
ast.Sub: '-', | |
ast.Mult: '*', | |
ast.Div: '/', | |
ast.Pow: '**', |
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
""" | |
MIT License | |
Copyright (c) 2020 Gaming32 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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 | |
def list_directory(root): | |
tosearch = [root] | |
reached = set() | |
while tosearch: | |
for item in tosearch[:]: | |
tosearch.remove(item) |
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
// Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
/** | |
* T-Rex runner. | |
* @param {string} outerContainerId Outer containing element id. | |
* @param {!Object=} opt_config | |
* @constructor | |
* @implements {EventListener} |
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 sys | |
import time | |
import win32con | |
import win32gui | |
def main(args): | |
if len(args) < 1: | |
input('Press enter when ready to select window...') |
NewerOlder