Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
I'm available for full-time work!

Chris Burnell chrisburnell

👋
I'm available for full-time work!
View GitHub Profile
@chrisburnell
chrisburnell / keysToFrequencies.js
Last active Sep 4, 2018
JavaScript function(s) to convert a run of piano keys into their respective frequencies
View keysToFrequencies.js
////
/// Return a frequency based on piano key
/// @param {Number} key [49]
/// @return {Number} frequency
////
let getFrequencyFromKey = (key = 49) => {
return 2 ** ((key - 49) / 12) * 440;
};
////
View keybase.md

Keybase proof

I hereby claim:

  • I am chrisburnell on github.
  • I am chrisburnell (https://keybase.io/chrisburnell) on keybase.
  • I have a public key ASCFnyxUQEyHD2wMFUWd0LbR9oP0vWru59ZknizJE_lWHAo

To claim this, I am signing this object:

@chrisburnell
chrisburnell / math.scss
Created Apr 24, 2018
Mathematics for SCSS
View math.scss
///
// Math SCSS
///
// Constants
$E: 2.718281828459045;
$PI: 3.141592653589793;
$LN2: 0.6931471805599453;
$SQRT2: 1.4142135623730951;
@chrisburnell
chrisburnell / font-family()
Last active Dec 1, 2015
SCSS @mixin for choosing a `font-family` and optional `font-display`
View font-family()
/// @type List
$font-stack-primary: Georgia, serif !default;
/// @type List
$font-stack-secondary: Arial, sans-serif !default;
/// @type List
$font-stack-tertiary: Tahoma, sans-serif !default;
@chrisburnell
chrisburnell / Pinboard Stylish Stylesheet
Last active Aug 29, 2015
My Pinboard Custom Stylesheet
View Pinboard Stylish Stylesheet
/* Import Open Sans */
@import url("//fonts.googleapis.com/css?family=Open+Sans:400italic,400,600");
/* Import Normalize */
@import url("//assets.chrisburnell.com/normalize.min.css");
/* Reset the box model */
html {
box-sizing: border-box;
}
@chrisburnell
chrisburnell / gulpfile.js
Last active Dec 1, 2015
Ravenous gulp Configuration
View gulpfile.js
/*!
* Chris Burnell gulp Configuration
*/
// Define gulp objects
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
concat = require('gulp-concat'),
csslint = require('gulp-csslint'),