Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
Enjoying the process, not the outcome.

Jag Talon jagtalon

🐢
Enjoying the process, not the outcome.
View GitHub Profile
View noise.js
const canvasSketch = require('canvas-sketch');
const { lerp } = require('canvas-sketch-util/math')
const random = require('canvas-sketch-util/random')
const palettes = require('nice-color-palettes')
const settings = {
dimensions: [2048, 2048],
// units: 'cm',
// pixelsPerInch: 300
};
View randomized-circles.js
const canvasSketch = require('canvas-sketch');
const { lerp } = require('canvas-sketch-util/math')
const random = require('canvas-sketch-util/random')
const palettes = require('nice-color-palettes')
const settings = {
dimensions: [2048, 2048],
// units: 'cm',
// pixelsPerInch: 300
};
View making-a-grid.js
const canvasSketch = require('canvas-sketch');
const { lerp } = require('canvas-sketch-util/math')
const settings = {
dimensions: [2048, 2048],
// units: 'cm',
// pixelsPerInch: 300
};
const sketch = () => {
View ui.ts
// Receive all the text nodes of the selected frame from the plugin.
onmessage = (event) => {
let pluginMessage: string[][] = event.data.pluginMessage,
table: HTMLTableElement = document.createElement('table'),
container: HTMLElement = document.querySelector('.plugin__container');
// Attach the table to the container.
container.append(table);
// Build the table.
View world-electricity.csv
We can't make this file beautiful and searchable because it's too large.
Entity,Code,Year,Coal (% of total),Nuclear (Rate),Natural gas (Rate),Oil (Rate),Hydroelectric (Rate),Other renewables (excluding hydro) (Rate)
Albania,ALB,1971,0,0,0,42.8571428571429,57.1428571428571,0
Albania,ALB,1972,0,0,0,37.9310344827586,62.0689655172414,0
Albania,ALB,1973,0,0,0,33.7837837837838,66.2162162162162,0
Albania,ALB,1974,0,0,0,31.5789473684211,68.4210526315789,0
Albania,ALB,1975,0,0,0,28.0898876404494,71.9101123595506,0
Albania,ALB,1976,0,0,0,25.4901960784314,74.5098039215686,0
Albania,ALB,1977,0,0,0,23.4782608695652,76.5217391304348,0
Albania,ALB,1978,0,0,0,22.5806451612903,77.4193548387097,0
Albania,ALB,1979,0,0,0,21.1678832116788,78.8321167883212,0
View SD.csv
INDUSTRY AMOUNT YEAR
Commercial 0.69 1990
Commercial 0.68 1991
Commercial 0.68 1992
Commercial 0.75 1993
Commercial 0.74 1994
Commercial 0.78 1995
Commercial 0.82 1996
Commercial 0.77 1997
Commercial 0.67 1998
View SD.csv
INDUSTRY AMOUNT YEAR
Commercial 0.69 Commercial
Commercial 0.68 Commercial
Commercial 0.68 Commercial
Commercial 0.75 Commercial
Commercial 0.74 Commercial
Commercial 0.78 Commercial
Commercial 0.82 Commercial
Commercial 0.77 Commercial
Commercial 0.67 Commercial
View global-primary-energy.csv
Entity Code Year Coal (terawatt-hours) Solar (terawatt-hours) Crude oil (terawatt-hours) Natural gas (terawatt-hours) Traditional biofuels (terawatt-hours) Other renewables (terawatt-hours) Hydropower (terawatt-hours) Nuclear (terawatt-hours) Wind (terawatt-hours)
World OWID_WRL 1800 97.2223 0 0 0 5555.555556 0 0 0 0
World OWID_WRL 1810 127.77788 0 0 0 5833.333333 0 0 0 0
World OWID_WRL 1820 152.7779 0 0 0 6111.111111 0 0 0 0
World OWID_WRL 1830 263.8891 0 0 0 6388.888889 0 0 0 0
World OWID_WRL 1840 355.55584 0 0 0 6944.444444 0 0 0 0
World OWID_WRL 1850 569.4449 0 0 0 7222.222222 0 0 0 0
World OWID_WRL 1860 1061.11196 0 0 0 6944.444444 0 0 0 0
World OWID_WRL 1870 1641.66798 0 5.55556 0 6944.444444 0 0 0 0
World OWID_WRL 1880 2541.6687 0 33.33336 0 6944.444444 0 0 0 0
View state-center.json
[
{
"state":"Alaska",
"latitude":61.3850,
"longitude":-152.2683
},
{
"state":"Alabama",
"latitude":32.7990,
"longitude":-86.8073
View temperature-anomaly.csv
Entity Code Year Median Upper Lower
Global 1850 -0.373 -0.339 -0.425
Global 1851 -0.218 -0.184 -0.274
Global 1852 -0.228 -0.196 -0.28
Global 1853 -0.269 -0.239 -0.321
Global 1854 -0.248 -0.218 -0.301
Global 1855 -0.272 -0.241 -0.324
Global 1856 -0.358 -0.327 -0.413
Global 1857 -0.461 -0.431 -0.512
Global 1858 -0.467 -0.435 -0.521