Skip to main content

Hey, I'm Sean McP

My name is Sean McPherson, and I’m a software engineer at Khan Academy building web and mobile applications in React. On the side, I like to work on little projects that help make people’s lives easier.

Outside of work, I enjoy spending time with my family (wife, two sons, and dog), playing and watching soccer, re-playing my favorite board games, and trying not to embarrass Jesus Christ.

Recent articles

Listen for class change in JavaScript

There isn’t an event for class list changes, but you can write a function that listens for class changes on an element with the MutationObserver API

Read more articles

Latest note

Note #50

I ran into an issue this morning where Astro stopped working on my Windows machine. 2.0.9 is working on MacOS but gives the following error in Windows:

runtime: out of memory: cannot allocate 4194304-byte block (4030464 in use)
fatal error: out of memory

I don’t think this is an Astro issue, since nothing has changed since it was last working. I don’t know of anything that changed in my enviroment, but maybe there is a memory leak somewhere causing me to run out?

Read more notes

Activity

  1. 2018
    3 articles 0 notes
  2. 2019
    19 articles 0 notes
  3. 2020
    51 articles 0 notes
  4. 2021
    33 articles 26 notes
  5. 2022
    36 articles 21 notes
  6. 2023
    20 articles 3 notes