# 2019.07.15

[文章] 《腾讯九年,我毕业了》从行业外的人身上学到的最多;无知和弱小不是生存的障碍,傲慢才是:https://yuguo.us/weblog/leaving-tencent/?from=timeline&isappinstalled=0 (opens new window)

[类库] minimatch 类似于 glob 函数,可以匹配文件或者目录是否符合要求:https://github.com/isaacs/minimatch (opens new window)

[类库] RxJS 是 Promise 的超集,集合了观察者模式、迭代器模式和使用集合的函数;解决了一旦调用了 resolve 或者是 reject 之后便返回的问题:https://github.com/reactivex/rxjs (opens new window)

[工具] verdaccio 可以快速的搭建出来一套 NPM 私有云,支持 Docker 一键部署,使用于公司级产品,但不能发布到 NpmJS 的情况:https://github.com/verdaccio/verdaccio (opens new window)

# 示例 - minimatch

var minimatch = require("minimatch")

minimatch("bar.foo", "*.foo") // true!
minimatch("bar.foo", "*.bar") // false!
minimatch("bar.foo", "*.+(bar|foo)", { debug: true }) // true, and noisy!

# 示例 - RxJS

import { range } from 'rxjs';
import { map, filter } from 'rxjs/operators';

range(1, 200).pipe(
  filter(x => x % 2 === 1),
  map(x => x + x)
).subscribe(x => console.log(x));

# 今日图 - 还原度 100%

Last Updated: 7/15/2019, 6:09:27 PM