Skip to content

Instantly share code, notes, and snippets.

View connordavenport's full-sized avatar

Connor Davenport connordavenport

View GitHub Profile
@connordavenport
connordavenport / video.html
Created November 8, 2022 21:20 — forked from kubarskii/video.html
Render video as ascii — use a variable font instead of ascii characters
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
@connordavenport
connordavenport / anchorHelper.py
Last active April 19, 2021 14:25 — forked from okay-type/anchorHelper.py
the rough start of a rf4 anchor tool
from vanilla import *
import merz
import mojo.subscriber as subs
from mojo.subscriber import Subscriber, registerGlyphEditorSubscriber
from mojo.subscriber import registerSubscriberEvent, getRegisteredSubscriberEvents
from mojo.extensions import registerExtensionDefaults, setExtensionDefault, getExtensionDefault, removeExtensionDefault
from mojo.drawingTools import *
from mojo.UI import SetCurrentGlyphByName
from math import radians, tan, pi
from AppKit import NSColor
@connordavenport
connordavenport / mm_toggle.py
Last active September 24, 2020 17:12 — forked from frankrolf/mm_toggle.py
Toggle Metrics Machine pair list
'''
Toggle the pair list of an open MetricsMachine (extension) window
from all kerning pairs (sorted by glyph order) to exceptions and back.
'''
import metricsMachine
from mm4.interface.documentWindow import MMDocumentWindowController
from mm4.mmScripting import _getMainWindowControllerForFont, MetricsMachineScriptingError
import mm4