V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wubaiqing
V2EX  ›  分享发现

[前端] 每日时报 - 2019.07.15

  •  
  •   wubaiqing · 2019-07-15 18:16:20 +08:00 · 1072 次点击
    这是一个创建于 1718 天前的主题,其中的信息可能已经有所发展或是发生改变。

    [前端] 每日时报 - 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%

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5891 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:11 · PVG 10:11 · LAX 19:11 · JFK 22:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.