Skip to content

Instantly share code, notes, and snippets.

View jacoblapworth's full-sized avatar
🌈

J jacoblapworth

🌈
View GitHub Profile
@jacoblapworth
jacoblapworth / generate-style-descriptions.ts
Created March 14, 2020 23:44 — forked from alexjlockwood/generate-style-descriptions.ts
Generates style descriptions for each color style in the current Figma file.
// Get the list of color styles in the current Figma file.
const colorStyles = figma.getLocalPaintStyles();
const updatedColorStyles = colorStyles.filter(style => {
const { paints } = style;
if (paints.length !== 1) {
// Skip styles containing multiple colors.
return false;
}
const [paint] = paints;
@jacoblapworth
jacoblapworth / .change-tab-color-pwd
Created September 24, 2017 22:28 — forked from jakeonrails/.change-tab-color-pwd
How to have change the tab color in iTerm2 based on what folder or directory you are in
#!/usr/bin/env python
"""
Set terminal tab / decoration color by the server name.
Get a random colour which matches the server name and use it for the tab colour:
the benefit is that each server gets a distinct color which you do not need
to configure beforehand.
"""