Skip to content

Instantly share code, notes, and snippets.

@dyyybek
dyyybek / easing.py
Created Mar 25, 2018 — forked from th0ma5w/easing.py
Easing Equations in Python (orig by Robert Penner)
View easing.py
# ported from http://www.gizma.com/easing/
# by http://th0ma5w.github.io
#
# untested :P
import math
linearTween = lambda t, b, c, d : c*t/d + b
@dyyybek
dyyybek / increments.py
Created Jun 9, 2017
GlyphsApp toggle keyboard increments
View increments.py
#MenuTitle: Toggle Keyboard Increments
# -*- coding: utf-8 -*-
__doc__="""
Toogle keyboard increment values.
"""
import GlyphsApp
l = [Glyphs.intDefaults["GSKerningIncrementLow"],Glyphs.intDefaults["GSKerningIncrementHigh"],Glyphs.intDefaults["GSSpacingIncrementLow"],Glyphs.intDefaults["GSSpacingIncrementHigh"]]
@dyyybek
dyyybek / glyph_explore.py
Last active Apr 8, 2017 — forked from jsbain/glyph_explore.py
glyph_explore.py
View glyph_explore.py
import ui,ctypes,string,os
from objc_util import *
UIFont=ObjCClass('UIFont') # This is not used anymore
CAKeyframeAnimation=ObjCClass('CAKeyframeAnimation') # Initialize object to use in PathAnimation class
# Magic
if sizeof(ctypes.c_size_t)==8:
CGFloat=ctypes.c_double
else: