create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
var isoCountries = { | |
'AF' : 'Afghanistan', | |
'AX' : 'Aland Islands', | |
'AL' : 'Albania', | |
'DZ' : 'Algeria', | |
'AS' : 'American Samoa', | |
'AD' : 'Andorra', | |
'AO' : 'Angola', | |
'AI' : 'Anguilla', | |
'AQ' : 'Antarctica', |
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
//Practically all this code comes from https://github.com/alangrafu/radar-chart-d3 | |
//I only made some additions and aesthetic adjustments to make the chart look better | |
//(of course, that is only my point of view) | |
//Such as a better placement of the titles at each line end, | |
//adding numbers that reflect what each circular level stands for | |
//Not placing the last level and slight differences in color | |
// | |
//For a bit of extra information check the blog about it: | |
//http://nbremer.blogspot.nl/2013/09/making-d3-radar-chart-look-bit-better.html |
/*----------------------------------------------------------------------------- | |
REQUIRE | |
-----------------------------------------------------------------------------*/ | |
var yo = require('yo-yo') | |
var csjs = require('csjs-inject') | |
var minixhr = require('minixhr') | |
/*----------------------------------------------------------------------------- | |
THEME | |
-----------------------------------------------------------------------------*/ | |
var FONT = 'Ubuntu, sans-serif' |
/*----------------------------------------------------- | |
REQUIRE | |
-------------------------------------------------------*/ | |
var yo = require('yo-yo') | |
var csjs = require('csjs-inject') | |
var minixhr = require('minixhr') | |
/*----------------------------------------------------- | |
THEME | |
-------------------------------------------------------*/ | |
var font = 'Kaushan Script, cursive' |
/*----------------------------------------------------- | |
REQUIRE | |
-------------------------------------------------------*/ | |
var yo = require('yo-yo') | |
var csjs = require('csjs-inject') | |
var minixhr = require('minixhr') | |
var chart = require('chart.js') | |
/*----------------------------------------------------- | |
THEME | |
-------------------------------------------------------*/ |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
str1 = "http://www.google.tw/search?q=中文"; | |
obj = { | |
get a(){return '1';}, | |
set b(value){this.c = value;}, | |
c:1 | |
}; | |
class Cls{ | |
constructor(name){ | |
console.log("hello",name); | |
if (typeof(new.target)==='function') |
app.all('*', (req, res, next) => { | |
res.header("Access-Control-Allow-Origin", req.headers.origin || '*'); | |
res.header("Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With"); | |
res.header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS"); | |
res.header("Access-Control-Allow-Credentials", true); //可以带cookies | |
res.header("X-Powered-By", '3.2.1') | |
if (req.method == 'OPTIONS') { | |
res.send(200); | |
} else { | |
next(); |
window.require = (function (modules) { | |
var wzrd_URL = 'https://wzrd.in/multi' | |
function init (name, _module) { | |
var se = document.createElement('script') | |
var module = JSON.parse(_module)[name] | |
var isJSON = (name.split('.').pop()||'').toUpperCase() === 'JSON' | |
if (module.package.version === '---') { | |
if (isJSON) { | |
se.text = `;(function (module) { module.exports = ${module.bundle} })(window.module);` | |
} else { |