I hereby claim:
- I am phillco on github.
- I am phillip (https://keybase.io/phillip) on keybase.
- I have a public key whose fingerprint is C558 19D7 938B 78D6 D63A ED64 4BA7 568E 1AB9 2102
To claim this, I am signing this object:
| from talon import Module, actions, ui | |
| mod = Module() | |
| @mod.action_class | |
| class Actions: | |
| def dock_handoff_accept(): | |
| """Accept a Handoff from another device via the dock""" | |
| handoff_items = ui.apps(bundle="com.apple.dock")[0].element.children.find( | |
| AXRole="AXDockItem", AXSubrole="AXHandoffDockItem" |
| import ollama | |
| from talon.types import Span | |
| OLLAMA_MODEL = "gemma2:2b" | |
| def process_text(text, template): | |
| print(f"Sending text to model: {text[:50]}...") | |
| prompt = template.replace("$text", text) | |
| try: |
| from talon import ui | |
| from talon.mac.ui import App | |
| from talon.ui import UIErr | |
| APPS = [ | |
| "Slack", | |
| "Google Chrome", | |
| ] |
| from talon import Context, Module, actions, app, ui | |
| ctx = Context() | |
| mod = Module() | |
| mod.list("window_titles", desc="All window titles") | |
| APPLICATION_MATCH_REGEX = re.compile("PyCharm|IntelliJ.*|TextEdit") | |
| import ast | |
| import os.path | |
| from talon import Context, Module, actions, ui | |
| ctx = Context() | |
| mod = Module() | |
| # Stores the original AST elements so we can refer to specific properties of them | |
| REFERENCE = {} |
| """ | |
| An IPython magic function to pretty-print objects with syntax highlighting. | |
| See, "Defining your own magics": | |
| http://ipython.org/ipython-doc/stable/interactive/reference.html#defining-your-own-magics | |
| For more on Pygments: | |
| http://pygments.org/docs/quickstart/ | |
| Usage |
| ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl |
| [alias] | |
| update-master=update-ref refs/heads/master refs/remotes/origin/master |
I hereby claim:
To claim this, I am signing this object:
| function tab_color --description "Sets the current tab color. Usage: tab_color <r> <g> <b>" | |
| echo -ne "\033]6;1;bg;red;brightness;$argv[1]\a" | |
| echo -ne "\033]6;1;bg;green;brightness;$argv[2]\a" | |
| echo -ne "\033]6;1;bg;blue;brightness;$argv[3]\a" | |
| end | |
| function tab_nocolor --description "Resets the current tab color." | |
| echo -ne "\033]6;1;bg;*;default\a" | |
| end |