This file contains hidden or 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
| // strip unit utility function | |
| @function strip-unit($n) { | |
| @return math.div($n, ($n * 0 + 1)); | |
| } | |
| /** | |
| * @function scale-between | |
| * interpolates the size of an element based on the size of the screen | |
| * |
This file contains hidden or 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
| #!/usr/bin/env node | |
| console.log("I was executed from a gist inside the terminal with npx!"); |
This file contains hidden or 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
| #!/usr/bin/env node | |
| console.log("I was executed from a gist inside the terminal with npx!"); |
This file contains hidden or 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
| // Cubic Bezier utility (from CSS spec) | |
| function cubicBezier(p1x, p1y, p2x, p2y) { | |
| const cx = 3 * p1x | |
| const bx = 3 * (p2x - p1x) - cx | |
| const ax = 1 - cx - bx | |
| const cy = 3 * p1y | |
| const by = 3 * (p2y - p1y) - cy | |
| const ay = 1 - cy - by |
OlderNewer