Skip to content

Instantly share code, notes, and snippets.

View afamonyimadu's full-sized avatar

Afam Onyimadu afamonyimadu

View GitHub Profile
@afamonyimadu
afamonyimadu / CapsLayer.ahk
Last active October 8, 2026 01:39
AutoHotkey script for keyboard shortcuts linked to the Caps Lock key
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"
; ============================================================
; 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 ---
@afamonyimadu
afamonyimadu / BritanicaUSPresScrap.py
Created May 21, 2024 18:31
Python script to scrape Presidents of the United States table from Britannica This Python script utilizes libraries like requests and BeautifulSoup to scrape the table containing the list of US Presidents from Britannica (https://www.britannica.com/topic/presidents-of-the-United-States-2226856). It extracts the table headers and data, and saves …
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