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 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) |
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
function Alert() | |
local currentSourceID = hs.keycodes.currentSourceID() | |
-- 如果当前输入法和上一个输入法相同,则直接返回 | |
if currentSourceID == lastSourceID then | |
return | |
end |
OlderNewer