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
| FROM node:6-alpine | |
| RUN apk add --no-cache --virtual .vcs git openssh-client && | |
| apk add --no-cache --virtual .cache tar | |
| RUN apk add --no-cache --virtual .heroku curl && \ | |
| curl https://cli-assets.heroku.com/branches/stable/heroku-linux-amd64.tar.gz -o heroku.tar.gz && \ | |
| mkdir -p /usr/local/lib /usr/local/bin && \ | |
| tar xf heroku.tar.gz -C /usr/local/lib && \ | |
| ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku && \ |
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
| 'use strict' | |
| const DATA_ENDPOINT = 'http://applications.edb.gov.hk/datagovhk/data/SchoolBasicInfo.xml'; | |
| const DIST = `${__dirname}/outputs/telephone.csv`; | |
| const fs = require('fs'); | |
| const request = require('request'); | |
| const cheerio = require('cheerio'); | |
| request(DATA_ENDPOINT, (e, response, body) => { |
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
| 'use strict' | |
| const DATA_ENDPOINT = 'http://applications.edb.gov.hk/datagovhk/data/SchoolBasicInfo.xml'; | |
| const DIST = `${__dirname}/../swot/lib/domains/`; | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const dns = require('dns'); | |
| const request = require('request'); | |
| const cheerio = require('cheerio'); |
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> | |
| <meta charset="UTF-8"> | |
| <title>File Metadata Reader</title> | |
| <link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
| <link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"> | |
| <style> | |
| #dropzone { | |
| margin: auto; |