网上教程一堆,记录下我认为的关键点: 1.创建tsconfig.json,使用命令行在项目文件夹下输入“tsc --init”即可; 2.创建tasks.json,在VSCode中,使用ctrl+shift+p打开命令板,然后输入configure task Runner,按回车选择typescri ...
分类:
其他好文 时间:
2017-08-22 19:50:55
阅读次数:
131
生产环境中大多时候是需要管理配置文件的,安装软件包只是在初始化环境的时候用一下。下面我们来写个管理nginx配置文件的playbook mkdir -p /etc/ansible/nginx_config/roles/{new,old}/{files,handlers,vars,tasks} 其中n ...
分类:
其他好文 时间:
2017-08-22 12:35:21
阅读次数:
137
一、gulpAPI简介gulp本身能做的事情非常少,主要是通过插件来提供各种功能,gulp本身只提供了4个非常简洁的API,掌握这4个API你就基本掌握了gulp的全部。1、gulp.src(globs[,options])2、gulp.dest(path[,options])3、gulp.task(name[,deps],fn)4、gulp.watch(glob[,opts],tasks..
top命令 [root@localhost ~]# top top - 12:40:09 up 8 min, 2 users, load average: 0.01, 0.12, 0.12 Tasks: 455 total, 1 running, 454 sleeping, 0 stopped, 0... ...
分类:
系统相关 时间:
2017-08-19 14:17:34
阅读次数:
289
使用任务并行库执行异步任务 下面的示例演示如何通过调用 TaskFactory.StartNew 方法来创建并使用 Task 对象。 1 using System; 2 using System.Threading; 3 using System.Threading.Tasks; 4 5 class ...
分类:
Web程序 时间:
2017-08-18 18:42:36
阅读次数:
172
怎样才能快速的定位到并发高是由于磁盘io开销大呢?可以通过三种方式:第一种:用top命令中的cpu信息观察Top可以看到的cpu信息有:使用方法如下图:具体的解释如下:Tasks:29total进程总数1running正在运行的进程数28sleeping睡眠的进程数0stopped停止的进程数0zombie僵尸进程数C..
分类:
系统相关 时间:
2017-08-16 15:34:21
阅读次数:
149
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Security.Cryptography... ...
分类:
其他好文 时间:
2017-08-14 18:55:48
阅读次数:
124
一丶通过递归处理异步回调 二丶采用Async、Promise等第三方库处理异步回调(项目中我自己采用的是async) 关于async总结: 1.series(tasks, [callback]) 顺序执行数组、集合内的函数,当前面一个函数执行完成就会立即执行下一个函数,如果函数触发了错误,可以在ca ...
分类:
其他好文 时间:
2017-08-13 22:18:35
阅读次数:
145
拓扑排序模版题型: John has n tasks to do.Unfortunately, the tasks are not independent and the execution of one task is only possible if other tasks have alrea ...
分类:
编程语言 时间:
2017-08-11 10:34:32
阅读次数:
201
Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is ...
分类:
其他好文 时间:
2017-08-10 11:38:43
阅读次数:
170