Snippet: Material UI Responsive Icon ButtonA quick code snippet to hide button text on small screens using MUI and TypeScript2 min read·hashnode.blainegarrett.comFeb 21, 2023
TypeScript Conditional ScenariosA look at 7 different TypeScript scenarios requiring dependent and conditional typing9 min read·hashnode.blainegarrett.comApr 3, 2021
Accessing Available Devices in Browser via getUserMedia()The Covid-19 pandemic got me scrambling to come up with some web based solutions to support local Summer art festivals. In April I started digging into WebRTC as a potential in-browser low-barrier-to entry Real Time video solution. After some success...7 min read·hashnode.blainegarrett.com1BSep 26, 2020
Euclidean Distance in N dimensions and Naive Image QuantizationWhen I pitched this article to my graphic designer wife, she looked at me like I was speaking in tongues. However, I can't think of a more concise title. What this article will ultimately discuss is how something as seemingly non-quantitative as colo...9 min read·hashnode.blainegarrett.com4BTMSep 18, 2020
HTML 5 Canvas, React Refs and TypeScriptRefs in React have gone through several changes since their introduction. With the release of hooks in React 16.8, useRef became a handy way to interact with refs, especially in functional components. However, as TypeScript has come to dominate the J...6 min read·hashnode.blainegarrett.com2SESep 15, 2020