javascript

async/await vs .then() in JS Promises

Promises are at the core of asynchronous programming in JavaScript, but sometimes the patterns surrounding their use can be really confusing. First of all, there are two main things you can do with promises: *create* and *handle* them. This post will be mainly focused on the latter...

Hardware hacking with Arduino, Neopixels, and MTA data

As a New Yorker, I've had this dream, for awhile now - to be able to glance at a display on my wall and know when my train is coming. The MTA has a website: http://subwaytime.mta.info that provides this experience, but the user experience is pretty terrible and you can't even bookmark your subway stop.