In your command-line run the following commands:
brew doctor
brew update
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
// Paste this in a node v4.x REPL. | |
// let iso = require('./iso.countries.js'); | |
// iso.writeCountryJsonFile('test.js', (country) => { let o={}; o['name'] = country['name']; o['ISO3166-1-Alpha-2'] = country['ISO3166-1-Alpha-2']; o['code'] = country['ISO3166-1-Alpha-2']; o['Dial'] = country['Dial']; return o;}); | |
'use strict'; | |
let fs = require('fs'); | |
let countries; | |
const writeCountryJsonFile = (outputFilename, mapFunction) => { |
public enum CurrencyCode { | |
/*This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
[ | |
{ | |
"name": "", | |
"official_name_en": "Channel Islands", | |
"official_name_fr": "Îles Anglo-Normandes", | |
"ISO3166-1-Alpha-2": "", | |
"ISO3166-1-Alpha-3": "", | |
"M49": "830", | |
"ITU": "", | |
"MARC": "", |
To build the extension, update the username/password and zip `background.js` and `manifest.json` in a single archive. | |
In your command-line run the following commands:
brew doctor
brew update