Made for CGMatter/Default Cube vide: https://youtu.be/emPZiWmGsmg
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
""" | |
TestCase for directly showing off which __operation__ function name | |
connects to what runtime operator like `__add__` is called on `+` | |
more : https://docs.python.org/3/reference/datamodel.html#emulating-numeric-types | |
""" | |
class TestClass: | |
def __add__(self, arg): |
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 os | |
import time | |
import requests | |
NAME = 'thispersondoesnotexist' | |
URL = f'https://{NAME}.com/image' | |
IMG_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), NAME)) | |
# The file name pattern. `nr` will be replaced with the index of the file to write. | |
IMG_NAME = 'face_{nr}.jpg' | |
# How many face images you want to download. |
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
#py3 - find emojis under 100000/hex 186A0 | |
import os | |
MAX_NR = 100000 | |
URL = 'https://unicode.org/Public/emoji/13.1/emoji-test.txt' | |
TXT_NAME = 'emoji-test.txt' | |
TXT_PATH = os.path.abspath(os.path.join(__file__, '..', TXT_NAME)) | |
emojis = {} | |
content = '' |
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
# built-in imports should be at the top | |
# but sys is not even needed! See last block. | |
# import sys | |
# Module imports are preferred! Unneeded items should not be imported | |
from PySide2 import QtCore, QtWidgets | |
# numbers that are used multiple times or are key to the functionality | |
# should be in 1 place so one doesn't need to dig for the settings. | |
SIZE_SMALL = 70 |
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
// ==UserScript== | |
// @name Unitimedia Wifi Login to password | |
// @version 1 | |
// @grant none | |
// @match http://192.168.0.1/common_page/login.html | |
// ==/UserScript== | |
var input_field = document.getElementById("loginPassword"); | |
input_field.setAttribute("type", "password"); |
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
// ==UserScript== | |
// @name Telegram dark theme / night mode | |
// @namespace https://github.com/digitalheir/ | |
// @version 1.0 | |
// @description Dark theme / night mode for Telegram Web | |
// @author Maarten Trompper <maartentrompper@freedom.nl> | |
// @match https://web.telegram.org/* | |
// ==/UserScript== | |
// Since GM removed it (https://wiki.greasespot.net/GM_addStyle) |