Skip to content

Instantly share code, notes, and snippets.

View quitequinn's full-sized avatar
🧨

Quinn Keaveney quitequinn

🧨
View GitHub Profile
@quitequinn
quitequinn / GetAllWeights.js
Last active March 14, 2024 16:29
List all Font/Type Weight/Style names (usually used to infer Subfamily name) (Warning 9954+ styles / 255950+ with Italic)
///////////////////////////////
// All Weights
let weights = [];
///////////////////////////////
// All core weights
const coreWeights = ["Hairline", "Thin", "Mager", "Maigre", "Light", "Chiaro", "Lite", "Leicht", "Demi", "Book", "Buch", "Regular", "Normal", "Medium", "Stark", "Thick", "Kräftig", "Viertelfett", "Halbfett", "Dreiviertelfett", "Dark", "Bold", "Neretto", "Gras", "Fett", "Extrafett", "Black", "Nero", "Heavy", "Nerissimo", "Ultra", "Fat", "Poster"];
///////////////////////////////
@quitequinn
quitequinn / index.pug
Created December 22, 2018 00:50
Test for forked Changes
hi test
@quitequinn
quitequinn / thing.jade
Created September 26, 2015 19:53
Redefine variable
var OPT = false
each opt in data.OPT
if (typeof(opt) !== 'undefined')
if (typeof(opt.displayText) !== 'undefined')
OPT = true
if (OPT == true)
include ../partials/opt
function compiled(){
???
}
function exFunc(path){
var url = path.replace(/[_]/g, '/');
var index = path;
if (path == "home") {
url = '';
index = "intro";
}
<?
function get_client_ip() {
$ipaddress = '';
if (getenv('HTTP_CLIENT_IP'))
$ipaddress = getenv('HTTP_CLIENT_IP');
else if(getenv('HTTP_X_FORWARDED_FOR'))
$ipaddress = getenv('HTTP_X_FORWARDED_FOR');
else if(getenv('HTTP_X_FORWARDED'))
$ipaddress = getenv('HTTP_X_FORWARDED');
else if(getenv('HTTP_FORWARDED_FOR'))
# jackson@okaytype.com
### requires an icon file toolGoMetrics.pdf in the same folder
# download it from www.theharrietseries.com/crypt/robofont/toolGoMetrics.pdf
### updated 2013/03/10 — linked to didfontopen observers, just set as a startup script
### updated 2013/07/16 — fixed lame selection traceback and broken spacecenter adjustments
# to do: adjust by percent, uniform adjust, remember last setting
import os
from vanilla import *
from mojo.UI import CurrentFontWindow, CurrentSpaceCenter