Skip to content

Instantly share code, notes, and snippets.

View e-'s full-sized avatar
💭
working

Jaemin Jo e-

💭
working
View GitHub Profile
@e-
e- / ontime_crawl.js
Created July 10, 2019 08:48
Downloading the carrier on-time performance dataset from www.transtats.bts.gov
/* A JavaScript code for crawling datasets from transtats.bts.gov
As an example, let's download the carrier on-time performance dataset.
1) Go to https://www.transtats.bts.gov/tables.asp?Table_ID=236&SYS_Table_Name=T_ONTIME_REPORTING.
2) Click on the "Download" button below the dataset description.
3) Change the code (the `fields` variable) below to choose the field names that you want to include.
Note that the field name (in the database) is different from the name on the web page.
You should right-click on the checkbox next to each field and click on "Inspect".
The value at the "value" attribute of the <input> tag is the name you want.
@e-
e- / index.html
Last active August 8, 2016 23:53
SOM Animation with d3.js
<!doctype html>
<meta charset="utf-8">
<style>
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script>
<script>
var
n = 20, // square root of number of nodes