wubaiqing

[前端] 每日时报 - 2019.07.15

  •  
  •   wubaiqing · Jul 15, 2019 · 1926 views
    This topic created in 2493 days ago, the information mentioned may be changed or developed.

    [前端] 每日时报 - 2019.07.15

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

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

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

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

    GitHub: https://github.com/wubaiqing/zaobao

    示例 - 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%

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5913 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 06:20 · PVG 14:20 · LAX 23:20 · JFK 02:20
    ♥ Do have faith in what you're doing.