Skip to content

Instantly share code, notes, and snippets.

View chrisburnell's full-sized avatar
🇸🇬
Looking for work in Singapore!

Chris Burnell chrisburnell

🇸🇬
Looking for work in Singapore!
View GitHub Profile
@chrisburnell
chrisburnell / Pinboard Stylish Stylesheet
Last active August 29, 2015 14:16
My Pinboard Custom 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 December 1, 2015 15:24
Ravenous gulp Configuration
/*!
* Chris Burnell gulp Configuration
*/
// Define gulp objects
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
concat = require('gulp-concat'),
csslint = require('gulp-csslint'),
@chrisburnell
chrisburnell / font-family()
Last active December 1, 2015 16:04
SCSS @mixin for choosing a `font-family` and optional `font-display`
/// @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 / math.scss
Created April 24, 2018 13:56
Mathematics for SCSS
///
// Math SCSS
///
// Constants
$E: 2.718281828459045;
$PI: 3.141592653589793;
$LN2: 0.6931471805599453;
$SQRT2: 1.4142135623730951;

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 / keysToFrequencies.js
Last active September 4, 2018 14:33
JavaScript function(s) to convert a run of piano keys into their respective frequencies
////
/// Return a frequency based on piano key
/// @param {Number} key [49]
/// @return {Number} frequency
////
let getFrequencyFromKey = (key = 49) => {
return 2 ** ((key - 49) / 12) * 440;
};
////