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
| CapsLock & a::WinSetAlwaysOnTop -1, "A" | |
| CapsLock & t::SendText FormatTime(, "yyyy-MM-dd HH\:mm") | |
| CapsLock & u::TransformSelection(StrUpper) | |
| CapsLock & l::TransformSelection(StrLower) | |
| CapsLock & q::TransformSelection(text => Chr(34) text Chr(34)) | |
| TransformSelection(f) { | |
| c := ClipboardAll() | |
| A_Clipboard := "" | |
| Send "^c" |
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
| ; ============================================================ | |
| ; daily-shortcuts.ahk | |
| ; Requires AutoHotkey v2 (not v1) | |
| ; Four everyday-work automations, each on its own hotkey. | |
| ; Test each one individually before relying on all four. | |
| ; ============================================================ | |
| #Requires AutoHotkey v2.0 | |
| ; --- SETTINGS: edit these to match your own PC --- |
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 requests | |
| from bs4 import BeautifulSoup | |
| import pandas as pd | |
| # URL of the page to scrape | |
| url = "https://www.britannica.com/topic/Presidents-of-the-United-States-1846696" | |
| # Send a GET request to the webpage and get the response | |
| response = requests.get(url) | |
| # Raise an exception if the request was unsuccessful |