Colin Cheng

Results 10 comments of Colin Cheng

赞! 另,Async Functions 现在已经上升到 stage 3 了。 > https://github.com/tc39/ecma262

`babel-preset-react` 也是依赖于 `babel-plugin-transform-react-jsx`,而 `babel-plugin-transform-react-jsx` 在将 jsx 编译成 js 代码时,提供了一个选项 `pragma` 来选择 react(默认)还是其他的 Virtual-DOM。该选项可以通过在 `.babelrc` 中指定,或者直接在 jsx 的源文件里通过 `/** @jsx XXX */` pragma 来指定。 因此如果混合使用 react 和 preact,可以在使用 preact 的 jsx...

好多都跟 stateless 和 immutable data 有关

mac os 现在可以用 wireguard 了吗?

你可以使用 `route` 命令来添加 https://github.com/fivesheep/chnroutes/blob/master/chnroutes.py#L66

假设可以的话,源地址不是泄露了吗?这样走 VPN 的意义是什么?

@coderhaoxin In Node 5.7.0 ``` path.parse("/a/b") ``` returns ``` { root: '', dir: '/a', base: 'b', ext: '', name: 'b' } ``` I suggest use `path.posix.parse` instead of `path.parse`.

@coderhaoxin right, but I also suggest that use `path.posix.parse` instead of `path.parse` in koa-send.

@tejasmanohar I think the path is usually unix path(or url path), so we can only remove first forward slash of the path use `path.posix.parse`;