Run a Function On Enter in NextJS

Users have expectations when they’re using your tools. Maybe you have a message app? Your enter button should probably send your message. Tab might make you switch windows or menus. We’ll cover how to run a function when your user hits the enter button in a NextJS application. This will also work for any generic …

Read more

Set Default Inputs on a NextJS Typescript Function

Let’s quickly go over how to set default inputs on a NextJS Typescript function. This will be short and to the point. No need to waste your time. The Why I Need to Set a Default So, I wanted to dynamically set the autofocus of a custom input in my tool. But when I added …

Read more

BigQuery’s Having Clause

BigQuery

In what situation would you want to use BigQuery’s having clause outside of an interview? We’ll go over a couple of use cases and how I use it as a Data Engineer for Reddit. My Setup What Is BigQuery? BigQuery is a data warehouse as a service. Google handles your compute, your storage, and does …

Read more

Terminal Commands For Beginners

bash

Let’s go over some terminal commands for Beginners. This assumes you have basic computer knowledge and might have some sort of interest in software development. Terminal commands, especially those for linux systems, will get you pretty far. My Setup MacOS Opening Your Terminal On a mac hit command+space. This will open a search window. My …

Read more

Create A Custom Button In Next.js

We’re going to walk you through how to create a custom button in Next.js. This article will help you abstract the button so that you’re not copy pasting the core code everywhere throughout your application. This helps with application organization which might not be a huge problem when your application is tiny. But it’ll be …

Read more

Cast an array of items using lambdas in Python.

python

Let’s cast an array of items using lambdas in Python. It’ll look cleaner than its forloop counterpart. They’re a great way to clean up super verbose code and helpful when doing array manipulation. Before we begin, if you don’t know what a Python lambda is please check out this article we recently wrote. My most …

Read more

Add A Background Image to a NextJS App

One of the first things we do when starting off a new application is get our background squared away. This article will cover how to add a background image to a NextJS app. Still new to JS and struggling with the fundamentals? Check out Javascript: The Defenitive Guide (paid link) to brush up. My Setup …

Read more

Set An Existing Table’s Partition Expiration In Big Query

Big Query

Why Might I need A Partition Expiration? Partition expirations can be leveraged for several use cases. Some countries have laws pertaining to how long PII can be held. Storage is very expensive, maybe your company wants to save some money? The list can and will go on. But it gets a little harder when the …

Read more

Run Apache Airflow Locally in Docker

We’ll walk you through how to run Apache Airflow locally in Docker. The first chunk of this post will cover how to get Airflow standing, the second will go into some nuance and will answer several whys. My Setup Getting Airflow Standing Docker Airflow Looking for more detailed info? Check out Airflow’s official docs. Happy …

Read more

Execute Bash Commands and Return Results in Python

bash

I’ve had numerous cases where I’ve needed to execute bash commands and return the results in Python for some additional manipulation. My most recent example involved me working with BigQuery schemas. Getting schemas from the CLI was easy peasy but I’m not the best at BASH programming so I naturally turned to something more familiar …

Read more