Blog Posts

I write on whatever topics seem most interesting at the time.


post
coding

JavaScript Reduce Method

The reduce method is one of the most powerful array methods in JavaScript, but it can also be the most confusing. In this post, I'll explain how to use the reduce method in JavaScript.

post
coding

Introduction to Terminal Commands

When you’re first learning web development, the terminal can intimidating. Once you grasp the basics, however, you can move much more efficiently for most tasks through the command line. This post will introduce you to basic command line commands.

post
coding

Templating Classes in Astro

You can included templated language in Astro components to scaffold out dyanmic classes with the class:list directive.

post
coding

Custom HTML Prompt With Keyboard Maestro

Keyboard Maestro’s Custom Floating HTML Prompt opens the door to endless automation with web languages and tools like HTML, CSS, and JavaScript. I wrote a custom HTML prompt script in Keyboard Maestro that let’s me quickly copy YouTube links from my channel.

post
coding

Create a Lazy Loading Custom Youtube Embed

Lazy load YouTube embeds and use the YouTube thumbnail as a cover. I’ll also show you how to add your own custom play button on the thumbnail image and (as a bonus) how to use the embed as a custom shortcode or partial in the Hugo SSG.

post
coding

JavaScript new Date() Returns NaN or is Blank in Safari

Why is my JavaScript not showing in Safari? Are you trying to add dates in the wrong format? Safari does not allow for all date formats and trying to add new events may show blank or throw an error in Safari if you’re using the wrong format.

post
coding

Introduction to JavaScript

This guide offers tips for learning JavaScript, emphasizing the importance of focusing on concepts over syntax, building projects from scratch, embracing failure, and iterating to improve skills.

post
coding

How to Crop a Gif to a Square

If you need to crop a gif to 1:1 or crop a gif to square, there's a great command line tool called gifsicle that can crop, resize, and adjust your gif in a bunch of different ways.

post
coding

Git Commands

A basic guide to regular git commands I always forget…

post
coding

Hugo Setup

A basic guide to setting up a Hugo site with GitHub and Netlify.