在上一篇文章我们对 Stream 的特性及其接口进行了介绍,gulp 之所以在性能上好于 grunt,主要是因为有了 Stream 助力来做数据的传输和处理。 那么我们不难猜想出,在 gulp 的任务中,gulp.src 接口将匹配到的文件转化为可读(或 Duplex/Transform)流,通过 ...
分类:
其他好文 时间:
2017-01-31 21:40:31
阅读次数:
486
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr ...
分类:
其他好文 时间:
2017-01-31 13:40:06
阅读次数:
150
A more programming-like solution, is to hack the problem from simple: we try each possble base value, and see which 111..11 fits target number - using ...
分类:
其他好文 时间:
2017-01-31 10:32:45
阅读次数:
226
描述 删除字符串中重复的字符 分析 方法一,蛮力法。两个循环,大循环每次从数组中取出一个字符,小循环重新遍历该数组是否含有该字符。方法二:排序法。对两个字符串的字符进行排序,再比较。方法三:空间换时间。acsII共256个字符。使用256bit记录每个字符是否已出现过。遍历字符串,若已出现过则将该字 ...
分类:
其他好文 时间:
2017-01-30 19:31:19
阅读次数:
257
明天就是春节了
预祝大家新春快乐 [ ]~( ̄▽ ̄)~*
天天饭局搞得我是身心疲惫= =
所以更新比较慢
今天想跟大家分享的就是这个大名鼎鼎的React框架简介React是这两年非常流行的框架...
分类:
其他好文 时间:
2017-01-27 11:06:34
阅读次数:
293
5. 其它I/O系统调用 (1)dup和dup2函数 头文件 #include<unistd.h> 函数 int dup(int oldfd); int dup2(int oldfd, int newfd); 返回值 若成功返回新文件描述符,出错返回-1 功能 文件描述符的复制(将oldfd复制给n ...
分类:
其他好文 时间:
2017-01-22 20:26:40
阅读次数:
257
参考: http://lbsyun.baidu.com/index.php?title=webapi/guide/webservice-geocoding ...
注意,上次我们只是简单的在同一台服务器模拟搭建了一个新的http服务器(启用了8080端口),使用的是apache,从而模拟了多台服务器实现的Nginx反向代理,通过Nginx向上游代理服务器发送请求。 这一次对Nginx反向代理做出具体的配置,按照《Mastering Nginx》推荐 首先 su ...
分类:
Web程序 时间:
2017-01-21 14:10:39
阅读次数:
244