Skip to content

Instantly share code, notes, and snippets.

View markadrake's full-sized avatar
🇺🇸

Mark Drake markadrake

🇺🇸
View GitHub Profile
@markadrake
markadrake / gist.js
Created September 2, 2017 15:48
Concatenate Arrays using the Spread Operator in JavaScript
// Concatenate Arrays using the Spread Operator in JavaScript
// CodePen: https://codepen.io/markadrake/pen/mMvYRQ
// Gist: https://gist.github.com/
let myArray = [1],
mySecondArray = [2, 3],
myLastArray = [...myArray, ...mySecondArray]; // [1, 2, 3]
@markadrake
markadrake / Rotate a Doughnut Chart (Chart.JS).markdown
Created June 5, 2015 17:28
Rotate a Doughnut Chart (Chart.JS)

Rotate a Doughnut Chart (Chart.JS)

Just a quick pen to illustrate a new property we can use to rotate a doughnut chart. This example is specific to the Chart.JS library.

A Pen by Mark Drake on CodePen.

License.