Skip to content

Instantly share code, notes, and snippets.

@YenTingWu
YenTingWu / esm-package.md
Created July 29, 2021 05:39 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package linked to from here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@YenTingWu
YenTingWu / MissingMigrantsGlobal-original_dataset.csv
Last active July 13, 2021 07:08
Missing Migranting Dataset
We can't make this file beautiful and searchable because it's too large.
"Web ID","Region","Reported Date","Reported Year","Reported Month","Number Dead","Minimum Estimated Number of Missing","Total Dead and Missing","Number of Survivors","Number of Females","Number of Males","Number of Children","Cause of Death","Location Description","Information Source","Location Coordinates","Migration Route","URL","UNSD Geographical Grouping","Source Quality"
"55726","Middle East","July 11, 2021","2021","Jul","11","","11","20","","","","Vehicle accident","Muradiye District, Van Province, Turkey","Daily Sabha, Europa Press","38.994542000000, 43.767263000000","","https://archive.vn/wl6mJ, https://archive.vn/tclRy","Western Asia","3"
"55721","Mediterranean","July 07, 2021","2021","Jul","4","4","8","1","","","","Presumed drowning","Off Plage Ain Hamadi, Sidi Abderrahmane, Chlef, Algeria","Echorouk Online, Ennahar TV","36.493006100000, 1.094029400000","Western Mediterranean","https://archive.vn/PzeNa, https://archive.vn/oHeDi","Uncategorized","3"
"55696","Europe","July 06, 2021","2021","Jul","
@YenTingWu
YenTingWu / README.md
Last active July 9, 2021 05:31 — forked from curran/README.md
[unlisted] Demo of Datavis.tech export
@YenTingWu
YenTingWu / README.md
Created July 8, 2021 14:57 — forked from curran/README.md
The Iris Dataset

This is the "Iris" dataset. Originally published at UCI Machine Learning Repository: Iris Data Set, this small dataset from 1936 is often used for testing out machine learning algorithms and visualizations (for example, Scatter Plot). Each row of the table represents an iris flower, including its species and dimensions of its botanical parts, sepal and petal, in centimeters.

The HTML page provides the basic code required to load the data and display it on the page (as JSON) using D3.js.

For a more up to date code example with React & D3, see (VizHub: Stylized Scatter Plot)[https://vizhub.com/curran/3d631093c2334030a6b27fa979bb4a0d?edit=files&file=index.js].

@YenTingWu
YenTingWu / README.md
Last active July 8, 2021 07:43
United Nations World Population Prospects 2019
@YenTingWu
YenTingWu / colors_mdn.csv
Last active July 7, 2021 07:41
CSS Named Colors
Specification Keyword RGB hex value
CSS Level 1 black #000000
CSS Level 1 silver #c0c0c0
CSS Level 1 gray #808080
CSS Level 1 white #ffffff
CSS Level 1 maroon #800000
CSS Level 1 red #ff0000
CSS Level 1 purple #800080
CSS Level 1 fuchsia #ff00ff
CSS Level 1 green #008000