Skip to content

Instantly share code, notes, and snippets.

View thundernixon's full-sized avatar

Stephen Nixon thundernixon

View GitHub Profile
@thundernixon
thundernixon / Triangle Circle Square Animated Hero Background (responsive).markdown
Created May 6, 2016 15:24
Triangle Circle Square Animated Hero Background (responsive)
@thundernixon
thundernixon / check-anchor-consistency-in-all-open-fonts.py
Last active June 13, 2018 13:19
A script for RoboFont to check that all open fonts have the same anchors, then print out any inconsistencies so you can fix them as desired
################################################################################################
##################### Check anchors for consistency across all open fonts. #####################
################################################################################################
g = CurrentGlyph()
for font in AllFonts():
for g in font:
for anchor in g.anchors:
# for each font in all open fonts
@thundernixon
thundernixon / closeAllFonts.py
Created June 14, 2018 15:33
RoboFont miniscript: Close all open fonts, unless they have unsaved changes. Leave code & other windows open.
####################################################################
###### Close all open fonts, unless they have unsaved changes ######
####################################################################
###### Doesn't affect the windows of extensions, code, etc :) ######
####################################################################
###### Hook it up to a keyboard shortcut for quick & easy use ######
####################################################################
from mojo.UI import dontShowAgainMessage
@thundernixon
thundernixon / stylus-google_groups.css
Created October 24, 2018 19:49
Stylus CSS for Google Groups
/* Use with https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne */
/* Make Google Groups more readable on large screens */
.F0XO1GC-b-F {
box-sizing: border-box;
padding-bottom: 5vw;
}
.F0XO1GC-b-F > div {
max-width: 90ch;
@thundernixon
thundernixon / stylus-gmail.css
Created October 24, 2018 19:51
Stylus for GMail
/* Make GMail more readable on large screens with centered column and SF typeface for all text */
/* Based on a Styus doc by @weiweihuanghuang */
/* Use with https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne */
body,
input,
textarea,
select,
*
{
@thundernixon
thundernixon / Stylefile.yml
Last active December 19, 2018 00:05
Customizations for docu.glyphsapp.com via StyleURL.
---
version: 1.0
domains:
- docu.glyphsapp.com
url_patterns:
- docu.glyphsapp.com/*
timestamp: '2018-12-18T23:54:21Z'
id: UWuj
redirect_url: https://docu.glyphsapp.com/Core/Classes/GSFontMaster.html
shared_via: StyleURL - (https://www.styleurl.app) import and export CSS changes from
@thundernixon
thundernixon / output-css-media-queries.py
Last active January 15, 2019 22:17
Output granular CSS media queries with starter variables and a Python loop
# -------------------------------------------------
# -- set vars below -------------------------------
# note: "em" probably offers better control
units="px"
# provide a media query granularity (in pixels)
granularity = 25
# provide start & end viewport widths
@thundernixon
thundernixon / github-dark-ui.css
Last active January 28, 2019 02:59
Modified from https://github.com/StylishThemes/GitHub-Dark for more simplicity and better Octotree support
/*! Github Dark v1.20.78 (2018-10-30) */
/*! Repository: https://github.com/StylishThemes/GitHub-Dark */
/*! Userstyle: http://userstyles.org/styles/37035 */
/*! License: https://creativecommons.org/licenses/by-sa/4.0/ */
/* Override default browser styles */
button {
color: #b5b5b5 !important;
}
@thundernixon
thundernixon / README.md
Last active February 2, 2019 01:27
MiniKbd TwoEncoder – System Music + Video Speed Control

miniKbd Two Encoder setup for System Music + Video Speed Control

This is my code for the miniKbd, customized from the TwoEncoder-Multimode starter setup.

In mode 1, it controls macOS system music – play/pause, up/down volume, and skip/prev song.

In mode 2, it controls the Chrome extension Video Speed Controller – play/pause, skip forward/back by 5 seconds, and speed increase/decrease.

To avoid existing shortcut keys on Vimeo, I have separately configured the Video Speed Controller settings to use W for decrease speed and E for increase speed.

@thundernixon
thundernixon / check-num_points-selected_fonts.py
Created August 12, 2019 00:51
A RoboFont script to print a report of all mismatching counts of on and off-curve points in selected fonts, to help achieve interpolation compatibility.
from vanilla.dialogs import *
from mojo.UI import AskString
from mojo.UI import OutputWindow
import pprint
######## Spaced-separated list of glyphs to ignore in check (e.g. experimental glyphs) ########
glyphsToIgnore = ""
###############################################################################################