Edd Yerburgh Software Engineer

Create a responsive bar chart with D3.js

This tutorial shows you how to create a responsive bar chart using D3.js. The trick is using CSS and SVG attributes to avoid re rendering on resize!

Add a class to tabbed items with vanilla JavaScript

Want to style elements when they are in focus but don't want it styled when elements are active? Copy this vanilla JS snippet to add a class to tabbed items

Create dynamic ids in a loop with Pug/ Jade

Create dynamic IDs in a loop using Pug. This tutorial shows you how to use Pug to create dynamic ids for DOM elements

Convert any CSS color to hex with JavaScript

Convert any CSS color to hex with this simple function. Copy and paste the code into your JavaScript to quickly get the hex value of a CSS color.

Jazz up your code blocks with copy on click!

Add copy on click functionality to your code blocks to easily copy code. This tutorial provides the code and walks you through what is happening.