SingleMai / SingleMai.github.io

0 stars 0 forks source link

不错的文章推荐 #2

Open SingleMai opened 6 years ago

SingleMai commented 6 years ago

canvas Or 动画

canvas & Ts 炫酷粒子表白,双十一脱单靠它了!

webapck优化指南

https://github.com/GoogleChromeLabs/webpack-libs-optimizations

Puppeteer

puppetter安装就踩坑-解决篇 puppeteer+mysql—爬虫新方法!抓取新闻&评论so easy! Puppeteer 入门教程

Vue

使用vue Render书写v-html内容 Vue 中的无渲染组件

CSS

妙用 scale 与 transfrom-origin,精准控制动画方向

React

分享自己的 react 学习路径

Nest

Nest中文文档

设计模式

依赖注入(Dependency injection)模式 《软件设计的哲学》推荐的书籍

Docker

Docker

Functional JS 函数式编程

Functional-Light JavaScript Composing Software: An Introduction

Graphql

深入理解 GraphQL

CS61

CS 61A: Structure and Interpretation of Computer Programs Data Structures 暂时textBook看到1.5Control那一章,因为本月主题是函数式编程所以暂时放下

ngix

技术胖的ngix教程

安全

os

Book

typescript

Egg的报错处理

[RFC] 应用自定义 4xx 和 5xx 的方案

vue

vue组件通信全揭秘(共7章)

别人的学习心得

我如何零基础转行成为一个自信的前端

数据库

58数据库军规

[如何用 Node.js 和 Elasticsearch 构建搜索引擎]()

Web长列表的救星?谷歌推出Virtual Scroller

https://softnshare.com/2018/09/16/full-stack-vue-with-graphql-the-ultimate-guide/

事件循环机制的那些事

ae教程

nrm

网关graphql Schema directives

merge-graphql-schemas

http://www.cnblogs.com/geek6/p/3951677.html

https://natapp.cn/

SingleMai commented 5 years ago

一,服务选型 目前,用于构建 私有 npm 的,主要有 cnpm,sinopia,,verdaccio, 后两者属于一个派系

cnpm 由淘宝提供,构建比较麻烦,配置较多,后两者比较轻量,易于搭建和配置, sinopia 已经多年不更新,verdaccio 是其分支,并在持续更新,故选择 verdaccio 作为服务框架,内部简称为 vnpm verdaccio,优先使用内部发布的模块,如果没有,则从外部模块(目前上游是 taobao cnpm 源地址)并缓存,

速度:缓存过的模块安装会比较快,同时,我们的服务器带宽 有 10MB,足以支撑日常使用,快速安装模块

SingleMai commented 5 years ago

yi-see/app/controller/v1/check_task.js:260左右。显示进度不依赖心跳包

    const progressHandler = showProgress ? (currentIndex) => {
      try {
        stream.write('1');
      } catch (ex) {
        console.log('-----> ', ex.message);
      }
    } : () => {};
    // ===== 要显示进度,不能使用 await 模式,会导致阻塞
    const taskStartTime = new Date().getTime();
    // ===== 要显示进度,不能使用 await 模式,会导致阻塞
    const taskStartTime = new Date().getTime();
    RuleEngineService.startCheck(rules, sessions || [], progressHandler, params.action).then((checkedSessions) => {
      const processParams = {
        app,
        Models,
        checkTask,
        ruleType,
        taskStartTime,
        sessionId: params.sessionId,
        sessionCollectionId,
        checkedSessions,
        sessions,
      };

      CheckHelper.processCheckResult(processParams).then((respResult) => {
        stream.end(respResult); // end stream
      });
    }).catch((ex) => {
      console.log('smart check error: ', ex);
      ctx.status = 500;
      stream.end({ status: 500, msg: '智能检测发生错误' });
    });

vue 前端

axios 模拟去触发一个下载操作
  // `onDownloadProgress` allows handling of progress events for downloads
  onDownloadProgress: function (progressEvent) {
    // Do whatever you want with the native progress event
  },
SingleMai commented 5 years ago

"runtimeArgs": [ "--preserve-symlinks" ], npm link 调试加上这句

SingleMai commented 5 years ago

https://zhuanlan.zhihu.com/p/52844655?utm_medium=social&utm_source=wechat_session

SingleMai commented 5 years ago

sse http://www.ruanyifeng.com/blog/2017/05/server-sent_events.html

SingleMai commented 5 years ago

https://github.com/daniele-zurico/apollo2-subscriptions-how-to

SingleMai commented 5 years ago

https://www.villainhr.com/

SingleMai commented 5 years ago

https://github.com/alivebao/clean-code-js