Skip to content

Instantly share code, notes, and snippets.

View tonhao-dev's full-sized avatar
💻
Coding

Tonhao tonhao-dev

💻
Coding
View GitHub Profile
[
["City", "Population"],
["Sao Paulo", 12325232],
["Rio de Janeiro", 6747815],
["Brasilia", 3055149],
["Salvador", 2886698],
["Fortaleza", 2686612],
["Belo Horizonte", 2521564],
["Manaus", 2219580],
["Curitiba", 1948626],
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonhao-dev
tonhao-dev / valueToColorScale.ts
Created May 3, 2021 21:49
Number value to color scale
export function valueToColorScale(
value: number,
minColor: string,
maxColor: string,
minValue: number,
maxValue: number
) {
const [
redMinColorInHex,
greenMinColorInHex,
export default {
border: {
radius: '0.5rem'
},
font: {
family: "'Open Sans', sans-serif",
normal: 400,
bold: 600,
xbold: 700,
sizes: {
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true