Skip to content

Instantly share code, notes, and snippets.

View raphodn's full-sized avatar

Raphaël Odini raphodn

View GitHub Profile
Ubuntu 20.04
## Guake
### Install
```
sudo apt-get install guake
```
@raphodn
raphodn / README.md
Last active September 25, 2019 01:44
Singapore Data: MRT (GeoJSON)
  1. Data downloaded from https://github.com/cheeaun/railrouter-sg/ (data/v2/all.json) (thanks!)
  2. Convert JSON to GeoJSON with the script below
  3. Additional cleaning manually (lines name & code, remove Bukit Panjang LRT 'duplicate' LineString)

2 version available:

  • pretty (225 KB)
  • minified (111 KB)
@raphodn
raphodn / README.md
Created September 20, 2019 14:22
Singapore Data: Hawker Centres (csv)
@raphodn
raphodn / travel_data.csv
Created September 19, 2019 02:41
Personal travel data
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 8 columns, instead of 6. in line 8.
country_name,country_id,visit_category,visit_year,visit_month,visit_description,visit_flickr,visit_tripline
Antarctica,10,wishlist,,,,,
Australia,36,traveled,2016,11,"2 weeks visiting the East Coast & Tasmania",,https://www.tripline.net/trip/Hong-Kong_%2B_Australia_2016-6366172746431012AED3C8455105748B
Australia,36,traveled,2019,2,"Perth & Margaret River",,https://www.tripline.net/trip/Perth_and_Margaret_River-11465743201410158FCD8E640BF501EC
Australia,36,traveled,2019,5,"Darwin & Kakadu National Park",,https://www.tripline.net/trip/Darwin__Kakadu_National_Park_Australia_(2019)_(3_days)-4671160743241015BD47CA2F60547686
Austria,40,traveled,2015,11,Innsbruck & Vienna,,
Belgium,56,traveled,2016,1,Brussels,https://www.flickr.com/photos/bcd4e6/albums/72157672622089576,
Cambodia,116,traveled,2018,8,"Siem Reap (Angkor Wat temples)",https://www.flickr.com/photos/bcd4e6/albums/72157700847147514,https://www.tripline.net/trip/Siem_Reap_2018_%282_days%29-5257536057341014829A805C3847412E
Cambodia,116,traveled,2019,3,Phnom
@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": [
[
@raphodn
raphodn / nvm.md
Last active May 7, 2018 07:31
NVM: Installation, Usage, Tips
@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 / 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 / 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 / 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