Skip to content

Instantly share code, notes, and snippets.

View thundernixon's full-sized avatar

Stephen Nixon thundernixon

View GitHub Profile
@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 / drawbot-example-hex2rgb-call.py
Last active January 25, 2020 04:36
Use normal hex values in Drawbot
### Example of using the method in a script for Drawbot
# import the method from hexToRgb.py (have hexToRgb.py in the same folder as your script)
# alternatively, you can also just include the whole method in your code
from hex2rgb import hex2rgb
# have a hex color in mind (works with or without the # sign)
myHex = "#2F3137"
# use an asterisk to feed the tuple (R,G,B) result in place of any usual drawbot color value
@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 / 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 / Triangle Circle Square Animated Hero Background (responsive).markdown
Created May 6, 2016 15:24
Triangle Circle Square Animated Hero Background (responsive)