Skip to content

Instantly share code, notes, and snippets.

View raphodn's full-sized avatar

Raphaël Odini raphodn

View GitHub Profile
@raphodn
raphodn / world-50m-without-antarctica.json
Created January 3, 2017 09:56
Natural Earth (Admin 0 - Countries) (without Antarctica (010) & French Southern Territories (260)) shapefile at 50m resolution in TopoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raphodn
raphodn / world-50m.json
Created January 3, 2017 09:58
Natural Earth (Admin 0 - Countries) shapefile at 50m resolution in TopoJSON (source: mbostock)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raphodn
raphodn / world-10m.json
Created January 5, 2017 09:58
Natural Earth (Admin 0 - Countries) shapefile at 10m resolution in TopoJSON (source: mbostock)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raphodn
raphodn / world-110m.json
Created January 5, 2017 09:59
Natural Earth (Admin 0 - Countries) shapefile at 110m resolution in TopoJSON (source: mbostock)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raphodn
raphodn / countries_continents_code_and_data.csv
Last active January 29, 2017 17:14
World countries with their country_code, continent, Population, Surface, GDP & GDP per capita in 1990, 2000, 2014 & 2015
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
country_name;alpha_2;country_code;region;region_code;sub_region;sub_region_code;continent;axis;year;value
Afghanistan;AF;AFG;Asia;142.0;Southern Asia;34.0;Asia;GDP (current US$);1990;
Afghanistan;AF;AFG;Asia;142.0;Southern Asia;34.0;Asia;GDP (current US$);2000;
Afghanistan;AF;AFG;Asia;142.0;Southern Asia;34.0;Asia;GDP (current US$);2014;20050189881.6659
Afghanistan;AF;AFG;Asia;142.0;Southern Asia;34.0;Asia;GDP (current US$);2015;19331286549.3323
Albania;AL;ALB;Europe;150.0;Southern Europe;39.0;Europe;GDP (current US$);1990;2101624962.5
Albania;AL;ALB;Europe;150.0;Southern Europe;39.0;Europe;GDP (current US$);2000;3632043907.78974
Albania;AL;ALB;Europe;150.0;Southern Europe;39.0;Europe;GDP (current US$);2014;13219857459.1009
Albania;AL;ALB;Europe;150.0;Southern Europe;39.0;Europe;GDP (current US$);2015;11398392444.316
Algeria;DZ;DZA;Africa;2.0;Northern Africa;15.0;Africa;GDP (current US$);1990;62045098374.5482
@raphodn
raphodn / process_countries.py
Created January 29, 2017 17:27
python script to process the World Bank country data
# coding='utf-8'
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
# Import the modules
import collections
from collections import Counter
import json
import csv
@raphodn
raphodn / process_lastfm.py
Created February 13, 2017 10:56
python script to process my lastfm history
# coding='utf-8'
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
# Import the modules
import json
import csv
import pandas as pd
@raphodn
raphodn / world-110m-without-antarctica.json
Created February 16, 2017 21:51
Natural Earth (Admin 0 - Countries) (without Antarctica (010) & French Southern Territories (260)) shapefile at 110m resolution in TopoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raphodn
raphodn / nvm.md
Last active May 7, 2018 07:31
NVM: Installation, Usage, Tips
@raphodn
raphodn / example-france.json
Last active November 30, 2018 03:51
Natural Earth (Admin 0 - Countries) (without Antarctica (010) & French Southern Territories (260)) shapefile at 110m resolution in TopoJSON, enriched (country_name_en, country_code_2, country_code_3, country_region_en, country_sub_region_en)
{
"country_name_en": "France",
"country_region_en": "Europe",
"country_code_3": "FRA",
"country_code_2": "FR",
"country_sub_region_en": "Western Europe",
"type": "MultiPolygon",
"id": 250,
"arcs": [
[