HomeResumeBadges
Blog Author Picture

Blaine Garrett

159 followers

Minneapolis-based Software Engineer. Currently on a radical sabbatical finding balance after 10 years in startup land. Current Mission: Convert py2.7 AppEngine backends to Node and Nest.js

TypeScript Conditional Scenarios

Apr 3, 20219 min read

I started on my TypeScript journey in December 2019. I'm still finding interesting bits that I want to explore and understand more. One such find was a tweet by Erik Rasmussen noting how the Material-UI team leverages types to enforce passing an arr...

Accessing Available Devices in Browser via getUserMedia()

Sep 26, 20207 min read

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...

Euclidean Distance in N dimensions and Naive Image Quantization

Sep 18, 20209 min read

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...

HTML 5 Canvas, React Refs and TypeScript

Sep 15, 20206 min read

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...

Eliminating server.js with Next.js 9.5

Aug 28, 20207 min read

Next.js 9.5 came out a week after releasing the 1.0 version of the Github Repository Template I have been building in this series. Next 9.5 includes a lot of great enhancements, but a key new feature was the rewrites config. With this feature, I hop...

Installing & Connecting to a Redis Docker Container Locally

Aug 18, 20204 min read

I found myself needing to locally run a Python application that required a Redis connection. I merely needed to run the application and didn't want to have to tinker with Docker compose or write a Dockerfile for the application. It has been a while s...

© 2021 Blaine Garrett's Hashnode Blog

PrivacyTerms
Proudly part of