flvyu
flvyu's profile photo

Tech Blog
Writings
Github
Course Work

How to Fix Menu Bar Covering Websites on MacBook Pro 14in

February 02, 2025 • 2 min read

I recently purchased a new Macbook Pro 14in. While it has been a great machine for my work, I have encountered this very annoying issue…

  • How To's

Read More

Class Expressions in JavaScript

November 10, 2022 • 1 min read

I learned you can create class instances pretty easily with class expressions. As you might have already learned from my other post on self…

  • JavaScript
  • Computer Programming

Read More

How to create a branch using Octokit and GitHub API - Example

March 13, 2022 • 2 min read

I recently started using the GitHub API for a project I'm working on. My goal was to have users fill out a form and when the form is…

  • Github
  • Web Development

Read More

How to get HLS and DASH streaming urls using Microsoft Graph API

March 09, 2022 • 2 min read

If you want to stream videos in your Microsoft OneDrive or SharePoint, you can use the Microsoft Graph API to get the streaming urls. I…

  • Web Development
  • Video

Read More

How to configure AdSense for static websites with Netlify

March 05, 2022 • 1 min read

Static site generators, such as Gatsby, Hugo, Nuxt, and more make it really easy to develop web applications. However, it can be hard to use…

  • Web Development

Read More

Using jest mockImplementationOnce to mock multiple return values

March 03, 2022 • 1 min read

Sometimes you may need to mock a function such that it returns different values after x number of calls. Using the mockImplementationOnce…

  • Jest

Read More

How to fix Could not run Script Over SSH in iOS Shortcuts

March 02, 2022 • 1 min read

As you may already know, since iOS 14 , with the Shortcuts app on the iPhone, you can run scripts over SSH on a server . However, due to…

  • Automation
  • How To's
  • Scripting

Read More

test vs it in jest

March 01, 2022 • 1 min read

In the Jest test framework, you are probably familiar with using the test() function for running a test. You may have also seen tests that…

  • Jest

Read More

How to configure aliases in GitHub Codespaces

November 04, 2021 • 1 min read

I was recently using Codespaces for a project and found myself having to repeat a command in the terminal over and over again. It was a pain…

  • Codespaces
  • bash

Read More

Why phone numbers should not be used for authentication

October 07, 2021 • 1 min read

If you haven't noticed, it seems every application nowadays is asking users for their phone numbers, regardless if it is actually necessary…

  • Late Night Thoughts

Read More

How to use iOS Shortcuts to run scripts on a server from your iPhone

April 25, 2021 • 2 min read

In iOS 14 , Apple added the Shortcuts app which allows you to automate tasks on your iPhone. To create a Shortcut you put together Actions…

  • Automation
  • Scripting

Read More

How to deploy and run Fluid Framework server and application

January 16, 2021 • 4 min read

In this tutorial, I will go through how to deploy a Fluid Framework application. Once you complete this, you will have a working Fluid…

  • Fluid
  • Helm
  • Kubernetes

Read More

Add a Featured Image to your Gatsby blog

January 03, 2021 • 1 min read

In the last tutorial we built the initial version of our Holiday Blog. However, it lacks a core feature that a lot of blogs have, images. In…

  • Gatsby
  • React
  • JavaScript

Read More

Build a blog with GatsbyJs

November 28, 2020 • 10 min read

Overview In this tutorial we will work together on using GatsbyJs to build a blog about different Holidays. This tutorial is intended to…

  • Gatsby
  • React
  • JavaScript
  • Material UI

Read More

What is Blitzjs?

November 13, 2020 • 2 min read

I was recently on the CodeSandbox site and one of the templates I saw was for something called Blitz.js . It was the first time I heard of…

  • JavaScript
  • React
  • Programming

Read More

Applications of Immediately-Invoked Function Expressions

October 25, 2020 • 2 min read

In the last post we learned what Immediately-Invoked Function Expressions (IIFE) are, and in this post I will touch on their use cases and…

  • Programming
  • JavaScript

Read More

What are self invoking functions?

October 21, 2020 • 1 min read

I was recently checking out a presentation online and saw the term "self invoking functions". I heard it many times but never really took…

  • Programming
  • JavaScript

Read More

Implement a Simple List Selection Component With React

July 14, 2020 • 2 min read

Previously I had worked on a list component that needed to change the style of a list item once a user clicks on it. In this post I will…

  • React
  • CSS
  • JavaScript

Read More

How to get days, hours, minutes, and seconds from milliseconds

June 26, 2020 • 1 min read

A while back I was working on a feature for a project I built to display a countdown. I wanted the countdown to display the number of days…

  • JavaScript

Read More

Create a setTimeout hook in React

June 11, 2020 • 2 min read

React hooks are useful as they allow you to encapsulate and reuse stateful logic in your components. setTimeout is a useful JavaScript…

  • React
  • React Hooks

Read More

How I built this website!

June 07, 2020 • 4 min read

Background As I mentioned in my previous post, What is this blog????? , this site is a total redesign of the previous version. I decided to…

  • Gatsby
  • Markdown
  • Material UI
  • Netlify
  • React

Read More