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
#!/usr/bin/python3.9 | |
cfd = dict()# cfd for cache_func_dict | |
def cache(func): | |
def wrapper(*args, **kwargs): | |
val = None | |
if func in cfd: | |
inner_dict = cfd[func] | |
if args in inner_dict: | |
val = inner_dict[args] | |
else: |
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 win32gui, win32con, time | |
import tkinter as tk | |
import pywintypes | |
windowList = [] | |
def winEnumHandler( hwnd, ctx ): | |
if win32gui.IsWindowVisible( hwnd ): | |
windowList.append((hwnd, win32gui.GetWindowText( hwnd ))) |
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
javascript:(function() { | |
var timeout = null; | |
var delay = 1000; | |
var script = document.createElement('script'); | |
script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js'; | |
document.head.appendChild(script); | |
script.addEventListener('load', function() { | |
var mathJaxConfig = { |