Skip to content

Instantly share code, notes, and snippets.

View fabrizioschiavi's full-sized avatar

Fabrizio Schiavi fabrizioschiavi

View GitHub Profile
@justvanrossum
justvanrossum / Kapitzki.py
Last active August 29, 2021 12:18
Animated tribute to a work by Herbert W. Kapitzki (DrawBot script)
# Based on a work by Herbert W. Kapitzki
# https://twitter.com/Lett_Arc/status/1369712193063780352
# from fontTools.misc.vector import Vector
from fontTools.misc.arrayTools import Vector
def pairs(iterable):
it = iter(iterable)
first = next(it)
@justvanrossum
justvanrossum / animated_color_grid.py
Created April 5, 2020 18:23
Animated Color Grid with DrawBot
canvasSize = 500
numSquares = 25
squareSize = canvasSize / numSquares
numFrames = 50
for frame in range(numFrames):
t = frame / numFrames
newPage(canvasSize, canvasSize)
frameDuration(1/25)
@9999years
9999years / pragmata-pro-liga.sty
Last active October 13, 2021 07:17
Ligatures with PragmataPro 0.827, probably XeLaTeX or LuaTeX, and listings / fontspec
% setup
\usepackage{fontspec}
\setmonofont[
Contextuals=Alternate,
]{PragmataPro Liga}
\usepackage{listings}
\lstset{
basicstyle=\ttfamily,
}
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z
bold b
𝐀 𝐁 𝐂 𝐃 𝐄 𝐅 𝐆 𝐇 𝐈 𝐉 𝐊 𝐋 𝐌 𝐍 𝐎 𝐏 𝐐 𝐑 𝐒 𝐓 𝐔 𝐕 𝐖 𝐗 𝐘 𝐙 𝐚 𝐛 𝐜 𝐝 𝐞 𝐟 𝐠 𝐡 𝐢 𝐣 𝐤 𝐥 𝐦 𝐧 𝐨 𝐩 𝐪 𝐫 𝐬 𝐭 𝐮 𝐯 𝐰 𝐱 𝐲 𝐳
("bA" "𝐀") ("bB" "𝐁") ("bC" "𝐂") ("bD" "𝐃") ("bE" "𝐄") ("bF" "𝐅") ("bG" "𝐆") ("bH" "𝐇") ("bI" "𝐈") ("bJ" "𝐉") ("bK" "𝐊") ("bL" "𝐋") ("bM" "𝐌") ("bN" "𝐍") ("bO" "𝐎") ("bP" "𝐏") ("bQ" "𝐐") ("bR" "𝐑") ("bS" "𝐒") ("bT" "𝐓") ("bU" "𝐔") ("bV" "𝐕") ("bW" "𝐖") ("bX" "𝐗") ("bY" "𝐘") ("bZ" "𝐙") ("ba" "𝐚") ("bb" "𝐛") ("bc" "𝐜") ("bd" "𝐝") ("be" "𝐞") ("bf" "𝐟") ("bg" "𝐠") ("bh" "𝐡") ("bi" "𝐢") ("bj" "𝐣") ("bk" "𝐤") ("bl" "𝐥") ("bm" "𝐦") ("bn" "𝐧") ("bo" "𝐨") ("bp" "𝐩") ("bq" "𝐪") ("br" "𝐫") ("bs" "𝐬") ("bt" "𝐭") ("bu" "𝐮") ("bv" "𝐯") ("bw" "𝐰") ("bx" "𝐱") ("by" "𝐲") ("bz" "𝐳")
italic i
𝐴 𝐵 𝐶 𝐷 𝐸 𝐹 𝐺 𝐻 𝐼 𝐽 𝐾 𝐿 𝑀 𝑁 𝑂 𝑃 𝑄 𝑅 𝑆 𝑇 𝑈 𝑉 𝑊 𝑋 𝑌 𝑍 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 𝑔 𝑕 𝑖 𝑗 𝑘 𝑙 𝑚 𝑛 𝑜 𝑝 𝑞 𝑟 𝑠 𝑡 𝑢 𝑣 𝑤 𝑥 𝑦 𝑧
("iA" "𝐴") ("iB" "𝐵") ("iC" "𝐶") ("iD" "𝐷") ("iE" "𝐸") ("iF" "𝐹") ("iG" "𝐺") ("iH" "𝐻") ("iI" "𝐼") ("iJ" "𝐽") ("iK" "𝐾") (
@plaidfinch
plaidfinch / pretty-pragmata.el
Last active July 15, 2021 01:56
Mappings for prettify-symbols-mode to enable Pragmata Pro's ligatures in Emacs. I've taken some slight liberties with the original ligature map, to suit my own tastes.
;; PRETTIFY SYMBOLS (with Pragmata Pro)
(defun setup-pragmata-ligatures ()
(setq prettify-symbols-alist
(append prettify-symbols-alist
'(("!!" . ?)
("!=" . ?)
("!==" . ?)
("!≡" . ?)
("!≡≡" . ?)
("!>" . ?)
@DeLaGuardo
DeLaGuardo / pragmatapro-font-lock-symbols-v2.el
Last active February 28, 2024 01:27
Snippet for support ligatures from PragmataPro font in Emacs
;; Enable ligatures without prettify-symbols
(provide 'add-pragmatapro-symbol-keywords)
(defconst pragmatapro-fontlock-keywords-alist
(mapcar (lambda (regex-char-pair)
`(,(car regex-char-pair)
(0 (prog1 ()
(compose-region (match-beginning 1)
(match-end 1)
@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 *
@sergejmueller
sergejmueller / ttf2woff2.md
Last active March 9, 2024 13:37
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
@ccstone
ccstone / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Last active May 10, 2024 15:41
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@agnoster
agnoster / README.md
Last active April 6, 2024 22:35
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark