Easy Event Throttling in React

Sometimes we need to limit the number of times a function is called. This is especially useful for events that are fired multiple times and that result in expensive operations like making an asynchronous call...

Optimizing PNG Images for Web

Web developers spend a lot of time trying to optimize files to make web pages load faster. Modern web applications often minify and bundle JavaScript and CSS for that purpose, but we often forget to...

Resizing Swap File with Bash

Linux machines use a disk partition called swap as an extension of memory. Properly setting the swap size is particularly important for small VPS nodes. For instance, I spawned a couple of droplets on...