matchMedia

For the longest time, I used window.innerWidth() to check the width of the browser, so I could show or hide something, and enable or disable something. That was until earlier this year when I realised JavaScript had a proper way to do this. Enter matchMedia. Can I Use says support is in all modern browsers, except IE9 and below, which you should have already stopped supporting. This chunk of…

Equal Height Boxes with Flexbox

For the uninitiated, flexbox can be used pretty much everywhere these days. That is assuming you've stopped supporting IE9 and below. (#protip You should stop). Can I Use shows just how well supported it is. When I was freelancing, one thing I'd need to do quite often is make equal height boxes, that fit into and conform to a grid nicely. I used to use JavaScript for this, but using…

Git Tips #1

Earlier today I tweeted how to preview a Git pull request. It got a few retweets and favourites quite quickly, so I thought I'd share a few other tricks, as well as the one I tweeted. Some are basic tips, but ones that I spent a while finding and learning, and some are tips I have learnt from the awesome team I work with . If your Git-fu is amazing, you…

TodoReview

Back in January, I wrote about SublimeTODO, a package for Sublime Text that searches files in your project for a set of keywords in comments, and shows them in one nice, navigable list. The version I wrote about was for Sublime Text 2, but I now use Sublime Text 3. The plugin I wrote about didn't really work with ST2, to the author deprecated it and now recommends a newer…

Brazil Fourteen Dot Com

Earlier this year, whilst visiting the good people at Karoshi, they showed me a prototype of a 2014 World Cup calendar poster. It looked brilliant. A little later, they had finalised the design and packaging – you can see more of that here. They asked me if I'd be interested in making a digital version. Having worked with Karoshi on numerous occasions before, I knew it would be an interesting project…