This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ |
| # 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 |
| function checkDirectorySync(directory) { | |
| try { | |
| fs.statSync(directory); | |
| } catch(e) { | |
| fs.mkdirSync(directory); | |
| } | |
| } |
| 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', |
| (function(console){ | |
| console.save = function(data, filename){ | |
| if(!data) { | |
| console.error('Console.save: No data') | |
| return; | |
| } | |
| if(!filename) filename = 'console.json' |
| if (localStorage && !localStorage.getItem('size')) { | |
| var i = 0; | |
| try { | |
| // Test up to 10 MB | |
| for (i = 250; i <= 10000; i += 250) { | |
| localStorage.setItem('test', new Array((i * 1024) + 1).join('a')); | |
| } | |
| } catch (e) { | |
| localStorage.removeItem('test'); | |
| localStorage.setItem('size', i - 250); |
| function server(req, res){ | |
| let next = () => { | |
| //deal with ending job | |
| } | |
| middlewares.reduceRight((next, middleware) => { | |
| return () => { | |
| middleware(req, res, next) | |
| } | |
| }, next)(); | |
| } |
| const arr1 = [1,2,3] | |
| const arr2 = [4,5,6] | |
| const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6] |
| const obj1 = {name:"xiaoming", age: 23} | |
| const obj2 = {age: 33} | |
| const obj3 = {...obj1, ...obj2} | |
| //obj3 ==> {"name":"xiaoming","age":33} |