Boot vagrant box and login using ssh.
$ [ -d notebook ] || mkdir notebook
$ vagrant up
$ vagrant ssh| version: '2' | |
| services: | |
| web: | |
| image: nginx:1.10 | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| volumes: | |
| - /opt/nginx/html:/usr/share/nginx/html | |
| logspout: |
| package main | |
| import ( | |
| "bufio" | |
| "encoding/csv" | |
| "fmt" | |
| log "github.com/Sirupsen/logrus" | |
| "github.com/docopt/docopt-go" | |
| "golang.org/x/text/encoding/japanese" | |
| "golang.org/x/text/transform" |
| #!/usr/bin/env python3 | |
| # See: | |
| # encoding - Python 3, let json object accept bytes or let urlopen output strings - Stack Overflow | |
| # http://stackoverflow.com/questions/6862770/python-3-let-json-object-accept-bytes-or-let-urlopen-output-strings | |
| import json | |
| import urllib.request | |
| REMOTE_URL = 'http://data.okfn.org/data/cpi/datapackage.json' | |
| res = urllib.request.urlopen(REMOTE_URL) |
| <!doctype html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title>東京ポリゴン</title> | |
| <meta name="description" content=""> |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """Bind multiple TSV files into Excel workbook. | |
| Requires "xlwt" for Python 2.x, or "xlwt-future" for Python 3.x series. | |
| """ | |
| import os | |
| import sys |