Skip to content

Instantly share code, notes, and snippets.

View shahnhogan's full-sized avatar

Shahn Hogan shahnhogan

View GitHub Profile
@shahnhogan
shahnhogan / elm-types-glossary.md
Created February 14, 2024 14:29 — forked from JoelQ/elm-types-glossary.md
Elm Type Glossary

Elm Types Glossary

There's a lot of type terminology and jargon going around when discussing types in Elm. This glossary attempts to list some of the most common type terms along with synonyms, terms from other language communities, examples, and links to more detailed articles on each topic.

@shahnhogan
shahnhogan / elm-debugger-nudger.js
Last active December 23, 2023 01:40
Elm Debugger - nudge the debugger over when multiple Elm apps are on the same page
const elmDebuggers = document.querySelectorAll('[viewBox="-300 -300 600 600"]');
Array.from(elmDebuggers).forEach((elmDebugger, index) => {
const nudgeAmount = `${1.5 + 6 * index}rem`;
elmDebugger.parentNode.style.right = nudgeAmount;
});
// Thanks to https://github.com/lucamug for sharing this on Twitter
// Original thread -- https://x.com/luca_mug/status/1737954346745401590?s=20
// @luca_mug example code: https://x.com/luca_mug/status/1738077153277931961?s=20
@shahnhogan
shahnhogan / download-redisinsight-mac.sh
Last active November 14, 2023 10:39
Download latest RedisInsight for macOS
curl -O https://download.redisinsight.redis.com/latest/RedisInsight-v2-mac-x64.dmg
@shahnhogan
shahnhogan / download-redisinsight.cmd
Last active October 30, 2024 18:29
Download latest RedisInsight for Windows
curl -O https://download.redisinsight.redis.com/latest/RedisInsight-v2-win-installer.exe