Skip to content

Instantly share code, notes, and snippets.

View ddaanniiieeelll's full-sized avatar
🕴️

Daniel ddaanniiieeelll

🕴️
View GitHub Profile
@LettError
LettError / comments.py
Created May 24, 2018 08:35
Drawbot sketch for drawing scribbles.
size(1000,400)
def scribble(pos, width, amplitude):
save()
x, y = pos
start = x
strokeWidth(1)
fill(None)
stroke(1-random()*0.2,0,0)
@LettError
LettError / selectFont.py
Created February 24, 2018 17:00
Quick sketch for a replacement for SelectFont for RF3.
# coding: utf-8
# replacement for robofab's SelectFont
import os
import vanilla
from mojo.roboFont import CurrentFont, CurrentGlyph, AllFonts, OpenWindow
class SelectFontWindow(object):
def __init__(self, callback=None):
self.fonts = {}
self.callback = callback
@JBlond
JBlond / bash-colors.md
Last active April 19, 2025 20:25 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@LettError
LettError / copyCurrentGitVersionToPrevLayer.py
Last active July 4, 2019 08:25
RoboFont: copy glif from git repo to layer in current glyph.
"""
Assuming you have
a UFO open in RoboFont
a current glyph selected
and furthermore that
this glyph is part of a git repository
and that you have done some work on it
and would like to compare the current state in robofont
@typemytype
typemytype / blurryfyer.py
Created November 23, 2015 09:57
apply filters on any view in RoboFont (example is a space center)
"""
Apply any filter on any view.
CIFilter reference: https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html#//apple_ref/doc/filter/ci/CIAccordionFoldTransition
"""
from mojo.UI import CurrentSpaceCenter
from AppKit import *