---
title: "Blaine Garrett (@blainegarrrett) | Hashnode"
description: "Software Engineer and Artist. Read the latest articles by Blaine Garrett on Hashnode."
url: "https://hashnode.com/@blainegarrrett"
---

@blainegarrrett

# Blaine Garrett

@blainegarrrett · Minneapolis, Minnesota, USA · Joined December 2019

Software Engineer and Artist

[Website](https://www.blainegarrett.com/)

### [Snippet: Material UI Responsive Icon Button](https://hashnode.blainegarrett.com/snippet-material-ui-responsive-icon-button?utm_source=hashnode&utm_medium=feed)

A quick code snippet to hide button text on small screens using MUI and TypeScript

2 min read · [hashnode.blainegarrett.com](https://hashnode.blainegarrett.com/snippet-material-ui-responsive-icon-button?utm_source=hashnode&utm_medium=feed)

[Feb 21, 2023](https://hashnode.com/posts/snippet-material-ui-responsive-icon-button/63f4eca7463532f19e23abb5)

### [TypeScript Conditional Scenarios](https://hashnode.blainegarrett.com/typescript-conditional-scenarios?utm_source=hashnode&utm_medium=feed)

A look at 7 different TypeScript scenarios requiring dependent and conditional typing

9 min read · [hashnode.blainegarrett.com](https://hashnode.blainegarrett.com/typescript-conditional-scenarios?utm_source=hashnode&utm_medium=feed)

[Apr 3, 2021](https://hashnode.com/posts/typescript-conditional-scenarios/606884cdb17dc439b747a415)

### [Accessing Available Devices in Browser via getUserMedia()](https://hashnode.blainegarrett.com/accessing-available-devices-in-browser-via-getusermedia?utm_source=hashnode&utm_medium=feed)

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.com](https://hashnode.blainegarrett.com/accessing-available-devices-in-browser-via-getusermedia?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/accessing-available-devices-in-browser-via-getusermedia/5f6f8ecf0ba48d6624c91a60) [Sep 26, 2020](https://hashnode.com/posts/accessing-available-devices-in-browser-via-getusermedia/5f6f8ecf0ba48d6624c91a60)

### [Euclidean Distance in N dimensions and Naive Image Quantization](https://hashnode.blainegarrett.com/euclidean-distance-in-n-dimensions-and-naive-image-quantization?utm_source=hashnode&utm_medium=feed)

When 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.com](https://hashnode.blainegarrett.com/euclidean-distance-in-n-dimensions-and-naive-image-quantization?utm_source=hashnode&utm_medium=feed)

[4](https://hashnode.com/posts/euclidean-distance-in-n-dimensions-and-naive-image-quantization/5f65145767d51d3b5d47987d) [Sep 18, 2020](https://hashnode.com/posts/euclidean-distance-in-n-dimensions-and-naive-image-quantization/5f65145767d51d3b5d47987d)

### [HTML 5 Canvas, React Refs and TypeScript](https://hashnode.blainegarrett.com/html-5-canvas-react-refs-and-typescript?utm_source=hashnode&utm_medium=feed)

Refs 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.com](https://hashnode.blainegarrett.com/html-5-canvas-react-refs-and-typescript?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/html-5-canvas-react-refs-and-typescript/5f614337c08f260dbcebe07b) [Sep 15, 2020](https://hashnode.com/posts/html-5-canvas-react-refs-and-typescript/5f614337c08f260dbcebe07b)
