Unit Testing React with Jest and Enzyme

Sometimes it's hard to remember what the right way to do things with Jest & Enzyme are. Here are some questions and code samples to refer »

CSS Colour Audit

or css color audit, for those in the US Based on article by A list apart - CSS Audits: Taking stock of your code. While working »

John

Git rebase guide

https://speakerdeck.com/ewoodh2o/a-sane-git-workflow Slide 41 onwards has a great explanation of rebase. If you're on a feature branch, use git rebase to get all »

John

Git overwrite master with <my_branch_name>

It may be useful to replace all the code on master with another branch you've been working on. Depending on what you want to keep on »

John

Flexbox notes

A few notes and good sites on explaining Flexbox, because I really don't get it sometimes. CSS Tricks: A simple guide to Flexbox To achieve a »

John

Get current directory path within a Grunt plugin using __dirname

If you need to refer to files within a grunt plugin you can use __dirname. I've used this to grab template files in a different directory »

Marionette vent workflow

Here are some notes on useful workflows when using the Backbone Marionette vent event manager. Group page-wide events When working in a modular way you may »

Responsive images with fixed aspect ratio using intrinsic sizing

Based on the now quite vintage A List Apart article from 2009, which looks at maintaining a video aspect ratio on resize, you can do the »