Skip to content

Instantly share code, notes, and snippets.

View alexismo's full-sized avatar

Alexis Morin alexismo

View GitHub Profile
@alexismo
alexismo / find-effect-consumers-in-file.js
Created March 19, 2024 18:15
Find consumers of an Effect style in a Figma file.
// based on https://gist.github.com/thomas-lowry/4d2d890ae5dfd4ab4eccebc4da99d52d with added return safety
const getPage = (node) => {
let item = node;
while (item && item.type !== "PAGE") {
item = item.parent;
}
// Return item if it's a PAGE node, otherwise return an empty string
return item?.type === "PAGE" ? item : "";
};
@alexismo
alexismo / connections_short.csv
Created May 23, 2012 09:33
Merged data from a CSV to make a beautiful DNA style rainbow
device part
0 178
0 179
0 182
0 196
0 197
0 199
0 211
0 218
0 219