Skip to content

Instantly share code, notes, and snippets.

View goxofy's full-sized avatar
💭
stay for u.

TinK goxofy

💭
stay for u.
View GitHub Profile
@goxofy
goxofy / test.py
Created April 13, 2024 03:30
test
from pushover_open_client import Client, Message
class Pushover:
def __init__(self):
self.client = Client("creds.json")
def messageCallback(self, msgList):
if msgList:
for msg in msgList:
self.client.deleteMessages(msgList[-1].id)
@goxofy
goxofy / input-method-alert.lua
Last active May 28, 2025 04:57
display current input method status with hammerspoon
function Alert()
local currentSourceID = hs.keycodes.currentSourceID()
-- 如果当前输入法和上一个输入法相同,则直接返回
if currentSourceID == lastSourceID then
return
end