Skip to content

Instantly share code, notes, and snippets.

@well1791
well1791 / get_relevant_changes.py
Last active April 3, 2024 09:20
get_difference
from typing import Union, List, TypedDict
import unittest
type Filenames = List[str]
type Action = TypedDict('Action', {
'added': Filenames,
'removed': Filenames,
})
def get_relevant_changes(list_of_actions: List[Action]) -> Action:
@well1791
well1791 / kanata.mac.kbd
Last active August 19, 2024 18:38
my kanata conf
(defcfg
process-unmapped-keys yes
macos-dev-names-include (
"Apple Internal Keyboard / Trackpad"
"Bluetooth USB Host Controller"
)
concurrent-tap-hold yes
)
(defsrc
unmap h
unmap H
map a enterInsertMode
map i scrollUp
map k scrollDown
map j scrollLeft
map J goBack
map s scrollDown
map w scrollUp
map e scrollPageUp