2zH / articles-collection

Chuunibyou is good!
1 stars 0 forks source link

Mark #4

Open 2zH opened 7 years ago

2zH commented 7 years ago

NPM Permission denied: https://docs.npmjs.com/getting-started/fixing-npm-permissions

2zH commented 7 years ago

PhantomJs:

PHANTOMJS_CDNURL=https://npm.taobao.org/mirrors/phantomjs/ npm install phantomjs-prebuilt

Node-Sass:

SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ npm install node-sass

or

NPM Config:

npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/
2zH commented 7 years ago

Python 2.7 build:

sudo make altinstall

make altinstall is used to prevent replacing the default python binary file /usr/bin/python.

2zH commented 7 years ago

Open browser in WSL:

cmd.exe /c explorer "$(url)"
2zH commented 7 years ago

关于尾逗号(trailing commas)

MDN: trailing commas

作用貌似仅在于让参数看起来更清晰,便于添加修改新参数……

2zH commented 7 years ago

JavaScript optional type system:

ECMAScript Daily

2zH commented 7 years ago

TODOList

2zH commented 7 years ago

Medium Dailyjs

https://medium.com/dailyjs

Mozilla Hacks

https://hacks.mozilla.org/

2zH commented 7 years ago

AOT(Ahead-Of-Time) compilation

https://en.wikipedia.org/wiki/Ahead-of-time_compilation

JIT(Just In Time) compilation

https://en.wikipedia.org/wiki/Just-in-time_compilation

2zH commented 7 years ago

AST tree:

babel: https://github.com/babel/babylon/blob/master/ast/spec.md jsx: https://github.com/facebook/jsx/blob/master/AST.md ecmascripts: https://github.com/estree/estree html: http://inikulin.github.io/parse5/modules/ast.html css: https://github.com/csstree/csstree

2zH commented 6 years ago

Finally, I found it. https://github.com/ReactiveX/rxjs/blob/master/doc/pipeable-operators.md But it is difference with proposal-pipeline-operator.

2zH commented 6 years ago

ESM modules in node: NPM EDITION (from NPM CTO) https://gist.github.com/ceejbot/b49f8789b2ab6b09548ccb72813a1054