准备知识 1. 前端开发基础 html、css、js2. 前端模块化基础3. 对ES6有初步的了解 vuejs官网:cn.vuejs.org HTML: Js: 实例2: html: js: ...
分类:
Web程序 时间:
2016-08-07 10:55:01
阅读次数:
315
https://github.com/Ovilia/Polyvia http://www.zhihu.com/question/29856775/answer/57668656 http://zhangwenli.com/blog/2015/06/25/polyvia/ https://read.d ...
分类:
其他好文 时间:
2016-08-07 10:55:44
阅读次数:
136
代码 int hd[maxn]; struct Tree{ int lson,rson,cnt; }; struct CMTree { int id; Tree tree[maxn*40]; void init(){ id=0; } void pushup(int rt){ e.cnt=tree[e ...
分类:
其他好文 时间:
2016-08-07 10:54:22
阅读次数:
194
Because in a case like this: type I int type P *I func (i I) Get() int { return int(i) } func (p P) Get() int { return int(*p) } var v I var x = (&v). ...
分类:
其他好文 时间:
2016-08-07 10:54:01
阅读次数:
259
1.流的提取运算符>>:读操作,称为(从流中)提取 流的插入运算符<<:写操作,称为(向流中)插入 For(int val = 1;val <= 10; ++val) {循环体} 执行流程: 再探编译 编译常出的错误: (1):对来自标准库的名字忘记使用std:: (2):标识符名字拼写错误 类型所 ...
分类:
编程语言 时间:
2016-08-07 10:56:19
阅读次数:
152
/proc/{pid} contains information about one process, this blog lists the detailed content. ...
分类:
其他好文 时间:
2016-08-07 10:55:25
阅读次数:
418
这个题思路没有任何问题,但还是做了近三个小时,其中2个多小时调试 得到的经验有以下几点: 像这道题主要坑在了第三点上,以后要注意避免 以下是AC代码 ...
分类:
其他好文 时间:
2016-08-07 10:53:40
阅读次数:
179
Date d = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd-hh-mm-ss"); String fileName= "jdbc:h2:~/"+sdf.format(d); cp = JdbcConnect ...
分类:
数据库 时间:
2016-08-07 10:55:29
阅读次数:
175
NanoApe Loves Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others)Total Submission(s): 421 Accepted Submission( ...
分类:
其他好文 时间:
2016-08-07 10:53:42
阅读次数:
221
1、微信的多屏适配 目前为止,iPhone屏幕尺寸已经有四种: 3.5(inch):1/3G/3GS/4/4S 4.0(inch):5/5S/5C 4.7(inch):6 5.5(inch):6Plus 看一下iPhone4~6(+)的屏幕高宽比: iPhone4(s):分辨率960*640,高宽比 ...
分类:
移动开发 时间:
2016-08-07 10:52:42
阅读次数:
526
I didn't relate well to people my age. 我没有向人们叙述清楚我的年龄 Maybe the truth was that I didn't relate well to people, period. 可能事实是我没有让人们了解我的周期 Even my mothe ...
分类:
其他好文 时间:
2016-08-07 10:54:40
阅读次数:
156
Evaluation of Expression Tree <!-- .entry-header --> Given a simple expression tree, consisting of basic binary operators i.e., + , – ,* and / and som ...
分类:
其他好文 时间:
2016-08-07 10:54:54
阅读次数:
159
目前针对iOS开发,很少会有UI方面的自动化测试. 目前Xcode提供了UI Automation,UI Testing Bundle,两者的优势都是可以通过录制真实的模拟器或者真机操作自动生成测试代码.而且不需要额外环境,只是需要xcode即可.但是缺点也很明显,就是自动生成的code可执行性,和 ...
分类:
移动开发 时间:
2016-08-07 10:54:04
阅读次数:
299
需求:单用户访问网站的某个目录,需要使用帐号密码来登录才能访问。 一、编辑虚拟主机的配置文件,添加目录级访问限制 二、用户认证配置文件1.创建apache的验证用户 回车后提示输入该用户的密码,输入两遍完成设置,第一次创建用户要用到 -c 参数,以后添加用户,就不用 -c 参数。 2.如果想修改某个 ...
分类:
Web程序 时间:
2016-08-07 10:54:07
阅读次数:
363
两类:checked exceptions 和 unchecked exception 。 一个是编译期间(compile-time),必须处理,不然编译不通过。 一个是运行期间(run-time) 常见的运行时异常: ClassCastException IndexOutOfBoundsExcep ...
分类:
其他好文 时间:
2016-08-07 10:51:35
阅读次数:
154
了解隐式接口和编译期多态 编译期多态和运行期多态 运行期多态就好比是virtual函数再运行的时候才确定该virtual函数该被绑定为哪个函数,运行的时候才确定函数类型。 编译期多态就好比是泛型编程和模板编程中,在编译的时候才确定哪个函数该被调用,根据函数的类型去确定。 显示接口和隐式接口 显示接口 ...
分类:
其他好文 时间:
2016-08-07 10:51:36
阅读次数:
169