Skip to content

Instantly share code, notes, and snippets.

View gilmoreorless's full-sized avatar
💭
Probably procrastinating: http://bit.ly/lazy-oss

Gilmore Davidson gilmoreorless

💭
Probably procrastinating: http://bit.ly/lazy-oss
View GitHub Profile
@gilmoreorless
gilmoreorless / README.md
Last active April 2, 2020 09:54
Demo project for a bug between storybook/ui and react-treebeard

This is a dummy project to help with debugging a compatibility issue between storybook@4.1.x and treebeard@^3.2.x:

It is a default project created via @storybook/cli sb init, with all storybook versions locked to 4.1.16.

  • @storybook/ui@^4.0.0 depended on react-treebeard@^3.1.0 — as soon as react-treebeard released version 3.2.0, storybook v4 started to break when using it.
  • @storybook/ui@4.1.18 solved the problem by explicitly pinning react-treebeard to version 3.1.0.
  • @storybook/ui@^5.0.0 no longer depends on react-treebeard, so this only affects the v4 branch (which is still heavily used).
@gilmoreorless
gilmoreorless / README.md
Last active January 21, 2019 22:14
Webpack helper for moment-timezone data

This is outdated!

The content of this gist has been superseded by a new proper plugin for webpack: https://github.com/gilmoreorless/moment-timezone-data-webpack-plugin

The original contents of the gist are kept below for context, but I encourage people to use the plugin instead.


This is a custom helper script I wrote for a project’s Webpack build. It reduces the amount of time zone definition data loaded by moment-timezone. This helps reduce the size of the JS bundle loaded in a browser.

Keybase proof

I hereby claim:

  • I am gilmoreorless on github.
  • I am gilmoreorless (https://keybase.io/gilmoreorless) on keybase.
  • I have a public key ASC76CCmkSavoTZ2XQWcUikOX-yNx5GtLw3xEHXOzqOJPQo

To claim this, I am signing this object:

@gilmoreorless
gilmoreorless / .block
Last active April 19, 2019 22:19
Flight time zone indicators
license: mit
@gilmoreorless
gilmoreorless / .block
Last active September 6, 2016 21:50
Twist a gradient-filled circle
license: cc-by-4.0
@gilmoreorless
gilmoreorless / .block
Last active September 3, 2016 10:15
Arc fill clipping
license: cc-by-4.0
@gilmoreorless
gilmoreorless / .block
Last active September 3, 2016 10:15
Flatten a circle
license: cc-by-4.0
@gilmoreorless
gilmoreorless / .block
Last active July 30, 2019 10:33
Gradient line to circle
license: cc-by-4.0
@gilmoreorless
gilmoreorless / .block
Last active June 30, 2016 07:42
Directional ring of nodes
license: cc-by-4.0
height: 600
@gilmoreorless
gilmoreorless / .block
Last active June 28, 2016 11:41
Draw an arrow between two points
license: cc-by-4.0