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 win32com.client import Dispatch | |
from tabulate import tabulate | |
import datetime | |
import pdb | |
OUTLOOK_FORMAT = '%m/%d/%Y %H:%M' | |
outlook = Dispatch("Outlook.Application") | |
ns = outlook.GetNamespace("MAPI") | |
appointments = ns.GetDefaultFolder(9).Items |
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 | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
import time | |
OUTPUT_DIR = "output" | |
URL = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" | |
# trailing slash is necessary | |
prefs = {"download.default_directory": os.path.join(os.getcwd(), f"{OUTPUT_DIR}/"), |
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
#!/usr/bin/env python3 | |
import secrets | |
import Xlib | |
import Xlib.display | |
import Xlib.X | |
display = Xlib.display.Display() | |
screen = display.screen() | |
root = screen.root |
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
#!/usr/bin/env python3 | |
import signal | |
import sys | |
def signal_handler(sig, frame): | |
print("Ctrl+C was pressed") | |
sys.exit(0) | |
signal.signal(signal.SIGINT, signal_handler) | |
print("Press Ctrl+C") |