Built with blockbuilder.org
Last active
September 5, 2017 22:31
-
-
Save jparklev/274fe8a501836269bd74a5dcbf385516 to your computer and use it in GitHub Desktop.
fresh block
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
license: mit |
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
label | population | country | x | y | |
---|---|---|---|---|---|
San Francisco | 750000 | USA | 122 | -37 | |
Fresno | 500000 | USA | 119 | -36 | |
Lahore | 12500000 | Pakistan | 74 | 31 | |
Karachi | 13000000 | Pakistan | 67 | 24 | |
Rome | 2500000 | Italy | 12 | 41 | |
Naples | 1000000 | Italy | 14 | 40 | |
Rio | 12300000 | Brazil | -43 | -22 | |
Sao Paolo | 12300000 | Brazil | -46 | -23 |
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
<!doctype html> | |
<html> | |
<head> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
</head> | |
<body> | |
<svg width="500" height="500"/> | |
<script> | |
d3.csv("worldcup.csv",strip, function(error,data) {console.log(data)}); | |
function strip (data, more) { | |
console.log(data, more) | |
} | |
</script> | |
</body> | |
</html> |
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
{ | |
"tweets":[ | |
{ | |
"user":"Al", | |
"content":"I really love seafood.", | |
"timestamp":" Mon Dec 23 2013 21:30 GMT-0800 (PST)", | |
"retweets":[ | |
"Raj", | |
"Pris", | |
"Roy" | |
], | |
"favorites":[ | |
"Sam" | |
] | |
}, | |
{ | |
"user":"Al", | |
"content":"I take that back, this doesn't taste so good.", | |
"timestamp":"Mon Dec 23 2013 21:55 GMT-0800 (PST)", | |
"retweets":[ | |
"Roy" | |
], | |
"favorites":[ | |
] | |
}, | |
{ | |
"user":"Al", | |
"content":"From now on, I'm only eating cheese sandwiches.", | |
"timestamp":"Mon Dec 23 2013 22:22 GMT-0800 (PST)", | |
"retweets":[ | |
], | |
"favorites":[ | |
"Roy", | |
"Sam" | |
] | |
}, | |
{ | |
"user":"Roy", | |
"content":"Great workout!", | |
"timestamp":" Mon Dec 23 2013 7:20 GMT-0800 (PST)", | |
"retweets":[ | |
], | |
"favorites":[ | |
] | |
}, | |
{ | |
"user":"Roy", | |
"content":"Spectacular oatmeal!", | |
"timestamp":" Mon Dec 23 2013 7:23 GMT-0800 (PST)", | |
"retweets":[ | |
], | |
"favorites":[ | |
] | |
}, | |
{ | |
"user":"Roy", | |
"content":"Amazing traffic!", | |
"timestamp":" Mon Dec 23 2013 7:47 GMT-0800 (PST)", | |
"retweets":[ | |
], | |
"favorites":[ | |
] | |
}, | |
{ | |
"user":"Roy", | |
"content":"Just got a ticket for texting and driving!", | |
"timestamp":" Mon Dec 23 2013 8:05 GMT-0800 (PST)", | |
"retweets":[ | |
], | |
"favorites":[ | |
"Sam", | |
"Sally", | |
"Pris" | |
] | |
}, | |
{ | |
"user":"Pris", | |
"content":"Going to have some boiled eggs.", | |
"timestamp":" Mon Dec 23 2013 18:23 GMT-0800 (PST)", | |
"retweets":[ | |
], | |
"favorites":[ | |
"Sally" | |
] | |
}, | |
{ | |
"user":"Pris", | |
"content":"Maybe practice some gymnastics.", | |
"timestamp":" Mon Dec 23 2013 19:47 GMT-0800 (PST)", | |
"retweets":[ | |
], | |
"favorites":[ | |
"Sally" | |
] | |
}, | |
{ | |
"user":"Sam", | |
"content":"@Roy Let's get lunch", | |
"timestamp":" Mon Dec 23 2013 11:05 GMT-0800 (PST)", | |
"retweets":[ | |
"Pris" | |
], | |
"favorites":[ | |
"Sally", | |
"Pris" | |
] | |
} | |
] | |
} |
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
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
"team","region","win","loss","draw","points","gf","ga","cs","yc","rc" | |
"Netherlands","UEFA",6,0,1,18,12,6,2,23,1 | |
"Spain","UEFA",6,0,1,18,8,2,5,8,0 | |
"Germany","UEFA",5,0,2,15,16,5,3,10,1 | |
"Argentina","CONMEBOL",4,0,1,12,10,6,2,8,0 | |
"Uruguay","CONMEBOL",3,2,2,11,11,8,3,13,2 | |
"Brazil","CONMEBOL",3,1,1,10,9,4,2,9,2 | |
"Ghana","CAF",2,2,1,8,5,4,1,12,0 | |
"Japan","AFC",2,1,1,7,4,2,2,4,0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment