// statement (语句)// variable (变量)// assignment(赋值)// declare(申明)// typing(类型申明)var a, b;var a;var b;var a = 1;var b = 2;var a, b;a = 1;b = 2;// array(...
分类:
Web程序 时间:
2014-12-19 17:09:25
阅读次数:
192
On a recent assignment, I needed to install npm behind a corporate proxy. I had already set the environment variables HTTP_PROXY and HTTPS_PROXY. Other command line utilities, like ruby gems, recog...
分类:
其他好文 时间:
2014-12-16 13:40:44
阅读次数:
169
当我们设计一个 class, 并以一个 class object 指定给另一个 class object 时, 我们有三种选择:1. 什么也不做, 实施默认行为2. 提供一个 explicit copy assignment operator3. 明确拒绝把一个 class object 指定给另一...
分类:
其他好文 时间:
2014-12-14 00:29:14
阅读次数:
277
"SeCreateTokenPrivilege" --> "Create a token object""SeAssignPrimaryTokenPrivilege" --> "Replace a process-level token""SeLockMemoryPrivilege" --> "Lo...
分类:
其他好文 时间:
2014-11-24 19:08:38
阅读次数:
187
Read More:http://es6.ruanyifeng.com/#docs/destructuringArray“模式匹配”,只要等号两边的模式相同,左边的变量就会被赋予对应的值:Exp 1:var [head, ...tail] = [1, 2, 3, 4];console.log(hea...
分类:
其他好文 时间:
2014-11-21 06:53:49
阅读次数:
189
Here is the way you get value from an object:var obj = { color: "blue"}console.log(obj.color); //blueDestructuring Assignment:ObjectDestructuring ...
分类:
其他好文 时间:
2014-11-21 01:31:07
阅读次数:
154
在经过个人作业和结对作业的磨练和现在正在进行的团队作业的考验中,我对自己软件开发的一点得失有了些许感悟,同时读了老师推荐的文章后,自己也是有了一些感受。首先在“No Silver Bullet”一文中,我深刻体验到了:非线性的complexity,项目单模块的复杂度以及整合之后出现的大量耦合问题;c...
分类:
其他好文 时间:
2014-11-13 14:19:07
阅读次数:
198
GRASP是General Responsibility Assignment Software Patterns(通用职责分配软件模式) GRASP提出了几个基本原则,用来解决面向对象设计的一些问题。与GoF设计模式不同的地方在于,GoF等设计模式是针对特定问题而...
分类:
Web程序 时间:
2014-11-11 16:48:54
阅读次数:
189
最近在mac系统下安装zend studio作为php开发工具,把以前的代码导入,发现项目中有很多 “assignment in condition”的警告,造成原因是在条件判断的if、while中使用了如下类似的做法:if ($res = $other)while (($row = $res->f...
分类:
其他好文 时间:
2014-11-09 19:29:57
阅读次数:
219
POJ 3189 Steady Cow Assignment
题目链接
题意:一些牛,每个牛心目中都有一个牛棚排名,然后给定每个牛棚容量,要求分配这些牛给牛棚,使得所有牛对牛棚的排名差距尽量小
思路:这种题的标准解法都是二分一个差值,枚举下界确定上界,然后建图判断,这题就利用最大流进行判断,值得一提的是dinic的效率加了减枝还是是卡着时间过的,这题理论上用sap或者二分图多重匹...
分类:
其他好文 时间:
2014-11-07 23:31:18
阅读次数:
412