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 json | |
from typing import Callable, TypedDict | |
from pathlib import Path | |
from tempfile import gettempdir | |
from talon import cron | |
Channel = TypedDict('Channel', { | |
'dispatch': Callable[[dict], None], | |
'handle_event': Callable[[dict], None], | |
'app_events': Path, |
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
tag: user.code_mode | |
code.language: typescript | |
- | |
# Keywords | |
export from file: user.insert_between("export * from './", "';") | |
import from package <user.text>$: | |
target = user.formatted_text(text or "", 'DASH_SEPARATED') | |
user.insert_between("import {{ ", " }} from '{target}';") | |
[import] from package$: user.insert_between("import {{ }} from '", "';") | |
(funk | function) [<user.text>]$: |
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
(hash brew 2>/dev/null || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)") && (hash gh 2>/dev/null || brew install gh) && ([[ "$(gh auth status)" == *"Logged in"* ]] || gh auth login) |
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 talon import Module, Context | |
mod = Module() | |
mod.tag( | |
"commander_active", | |
desc="Sets an extremely long speech timeout, reset with popping noise or spacebar", | |
) | |
ctx = Context() | |
@mod.action_class | |
class Actions: | |
def set_silly_timeout(): |