Skip to content

Instantly share code, notes, and snippets.

View ryanbugden's full-sized avatar
🏠
Working from home

Ryan Bugden ryanbugden

🏠
Working from home
View GitHub Profile
@ryanbugden
ryanbugden / cherry_picker.py
Last active January 15, 2024 18:27
Selectively load individual extensions from the comfort of Safe Mode. (Requires 5.2b 2401121414)
# menuTitle: Cherry Picker
import ezui
from mojo.extensions import ExtensionBundle
from AppKit import NSApp
def safe_mode_state():
obj = NSApp().mainMenu().itemWithTitle_("Safe Mode...")
@ryanbugden
ryanbugden / event_subscriber.py
Last active January 23, 2024 16:11
A Subscriber-based version of eventObserver. Useful for tracking internal notifications and using it for tool-building.
# menuTitle: Event Subscriber
'''
A Subscriber-based version of eventObserver.
Useful for tracking internal notifications and using it for tool-building.
2024.01.22 — Ryan Bugden
2024.01.23 — Made a lot faster by Tal Leming. Thanks!
'''
@ryanbugden
ryanbugden / glyph_recipes.py
Created April 12, 2024 18:14
Make new glyphs (ligatures?) with given input glyphs.
# menuTitle: Glyph Recipes
recipes = {
# Desired name, and recipe of what glyphs go in there
"fi": ('f', 'i'),
"f_l": ('f', 'l')
}
f = CurrentFont()