This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _getRefreshRate() { | |
const rafPromise = _ => new Promise(requestAnimationFrame); | |
const idlePromise = _ => new Promise(requestIdleCallback); | |
let f1, f2; | |
return new Promise(resolve => { | |
idlePromise() | |
.then(_ => rafPromise()) | |
.then(frame => {f1 = frame; return rafPromise();}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontFamily": "Input", | |
"editor.fontSize": 14, | |
"terminal.integrated.fontLigatures": true, | |
"terminal.integrated.fontSize": 14, | |
"editor.wordWrap": "on", | |
"editor.minimap.enabled": true, | |
"editor.minimap.renderCharacters": false, | |
"editor.fontLigatures": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Unless said otherwise, logic is min-width */ | |
/* Hard column width */ | |
@function colw($n, $gutter: $gutter) { | |
@return $n * ($col + $gutter); | |
} | |
/* Strip units */ | |
@function strip($value) { | |
@return $value / ($value * 0 + 1); |
NewerOlder