This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| const arr1 = [1,2,3] | |
| const arr2 = [4,5,6] | |
| const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6] |
| (function(console){ | |
| console.save = function(data, filename){ | |
| if(!data) { | |
| console.error('Console.save: No data') | |
| return; | |
| } | |
| if(!filename) filename = 'console.json' |
| function template(html, data){ | |
| //process html template | |
| html = html.replace(/>/g, ">") | |
| .replace(/</g, "<") | |
| .replace(/[\r\t\n]\s+/g, '') | |
| .trim(); | |
| var re = /<%([^>]+)?%>/g, | |
| reExp = /(^( )?(if|for|else|switch|case|break|{|}|var|let|const))(.*)?/g, | |
| code = 'var r=[];\n', |
| let fs = { | |
| readFile: function(filename, cb){ | |
| setTimeout(()=>{ | |
| cb('hello') | |
| }, 100) | |
| } | |
| } | |
| let readFilePro = function(filename){ | |
| return new Promise(function(resolve, reject) { | |
| fs.readFile(filename, (data, err) => { |
| const obj1 = {name:"xiaoming", age: 23} | |
| const obj2 = {age: 33} | |
| const obj3 = {...obj1, ...obj2} | |
| //obj3 ==> {"name":"xiaoming","age":33} |
| //mock a fs Object | |
| let fs = { | |
| readFile: function(filename, cb){ | |
| let randomTime = 100+Math.random()*1000>>0; | |
| setTimeout(()=>{ | |
| cb(`hello ${filename}`) | |
| }, randomTime) | |
| } | |
| } |
| # Intel | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse |
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ |
| function checkDirectorySync(directory) { | |
| try { | |
| fs.statSync(directory); | |
| } catch(e) { | |
| fs.mkdirSync(directory); | |
| } | |
| } |