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
function colorGradient(colors, fadeFraction) { | |
if (fadeFraction >= 1) { | |
return colors[colors.length - 1] | |
} else if (fadeFraction <= 0) { | |
return colors[0] | |
} | |
let fade = fadeFraction * (colors.length - 1); | |
let interval = Math.trunc(fade); | |
fade = fade - interval |
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
""" | |
Grammar: | |
======== | |
Expression --> AndTerm { OR AndTerm}+ | |
AndTerm --> Condition { AND Condition}+ | |
Condition --> Terminal (>,<,>=,<=,==) Terminal | (Expression) | |
Terminal --> Number or String or Variable | |
Usage: | |
====== |
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
""" | |
B+Tree Code Adapted From: | |
https://gist.github.com/savarin/69acd246302567395f65ad6b97ee503d | |
No explicit license when accessed on 2nd March 2020. | |
Other code: | |
(C) 2021 Justin Joyce. |