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
"""SetFolderIcon | |
Set folder's icon on Windows from any DLL resource.""" | |
import ctypes | |
from os.path import * | |
from ctypes.wintypes import BYTE, WORD, DWORD, LPWSTR | |
from ctypes import POINTER, Structure, c_wchar, c_int, sizeof, byref | |
__author__ = ["Christoph Gohlke", "kubinka0505"] | |
__credits__ = __author__ |
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
__doc__ = """Registry Setter | |
Script that allows batch values setting into the | |
Windows Registry editor with administrator privileges. | |
Can be used as standalone `Registry_Set` function | |
(with modules) or as an ArgumentParser one. | |
--- |
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
"""Gothic Saves Backup | |
Automatic script for Gothic saves backup.""" | |
from os import * | |
from tkinter import * | |
from zipfile import * | |
from pathlib import Path | |
from shutil import rmtree | |
from tkinter import filedialog as fd | |
from distutils.dir_util import copy_tree |
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
"""Script delimiting Inkscape's HTML node points | |
Can be used as both CLI and GUI. | |
Google Colab Version: | |
- https://colab.research.google.com/gist/kubinka0505/42723812ac6d4ed0b1f80e7a49481f70""" | |
from sys import *; del path | |
from os import *; del open | |
from subprocess import call | |
from tkinter import Tk, messagebox as msgbox, filedialog as fd | |
chdir(path.abspath(path.dirname(__file__))) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 discord # >= 1.6 | |
from os import * | |
from io import BytesIO | |
from discord.ext.commands import Bot | |
__description__ = "Discord Custom Emoji Ripper" | |
__author__ = "kubinka0505" | |
__date__ = "18.01.2021" | |
__version__ = "0.1" | |
__credits__ = __author__ |
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
"""Simple script providing multiline text draw with emoji support (Pillow & emojicdn)""" | |
import io | |
from requests import get | |
from textwrap import wrap | |
from urllib.parse import quote_plus | |
from emoji import emojize, demojize, UNICODE_EMOJI | |
from PIL import Image, ImageDraw, ImageFont, UnidentifiedImageError | |
#-----# |
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 PIL import Image | |
from requests import get | |
BG = Image.new("RGBA", (325, 250), (255,) * 3) | |
FG = get("https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Circle_-_black_simple.svg/100px-Circle_-_black_simple.svg.png", stream = True).raw | |
FG = Image.open(FG).convert("RGBA") | |
class Paste_Image(object): | |
def __init__(self, Background: Image, Foreground: Image, Crop = True): | |
self.FG = Foreground.crop(Foreground.getbbox()) if Crop == True else Foreground |