Unapply a stash in Git

Using Git and just applied the wrong stash? No worries, the following will help you. Unapply the last stash: → git stash show -p | git apply -R Unapply a specific stash: e.g. 0 in this case → git stash show -p stash@{0} | git apply -R…

Read full post

Find process by port number

My tmux session crashed, including a local server instance I was running. Now when I try to restart the server I get an error saying it's still running? How do I kill it? You probably already know what port you were using, so find what's listening on that port, collect…

Read full post

User Interface Algorithms

Even something as simple as a dropdown menu or a bar graph can introduce usability problems. From a slide out menu disappearing when a user's mouse moves a few pixels too far, to requiring NASA-like levels of precision to mouse over the right element, there are algorithms already implemented in…

Read full post

Enabling Source Maps in Chrome

Update: Google have now compiled a solid walkthrough that can be see here: Debugging JavaScript - Source Maps I've seen a couple of posts about enabling source map support, but never actually got it up and running. Below are the steps that I took to achieve this. I use Google…

Read full post