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
// ==UserScript== | |
// @name Text Block Wrapping Enhancer For ChatGPT | |
// @namespace http://tampermonkey.net/ | |
// @version 1.4 | |
// @description Replaces or adds the "!whitespace-pre-wrap" class to <code> elements. | |
// @match *://chatgpt.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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
""" | |
Tool for exception handling and logging | |
""" | |
import re | |
from sys import exc_info | |
import traceback | |
import datetime |
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 | |
from functools import partial | |
from loguru import logger | |
# Initials | |
scenario = "ALL" # "ALL" , "FILE_ONLY" , "STDOUTPUT_ONLY" accepted | |
level = "TRACE" # "OMIT", "TRACE", "DEBUG", "INFO", "SUCCESS", "WARNING", "ERROR" ("CRITICAL") | |
enqueue = True |
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
""" | |
Tool: ClassMixer v.1.0.1 | |
This module provides a dynamic mechanism to mix multiple mixins into a base class, | |
handling initialization and method resolution automatically. It constructs the resulting | |
class by invoking the __init__ methods of all classes according to the Method Resolution | |
Order (MRO) and detects if any base class methods are overridden by the mixins. | |
Key features: | |
- Dynamically creates a class that inherits from a base class and multiple mixins. |