##Respect Boundaries 严守边界 Remember to respect responsibility boundaries. Controllers and routes serve as a mediator between HTTP and your application. When writing large applications, don‘t cl...
分类:
移动开发 时间:
2014-08-22 14:39:39
阅读次数:
219
用于参考:SELECT 表名=case when a.colorder=1 then d.name else '' end, 表说明=case when a.colorder=1 then isnull(f.value,'') else '' end, 字段序号=a.colorder, 字段...
分类:
数据库 时间:
2014-08-22 09:18:25
阅读次数:
257
1、智能匹配操作符
替代绑定操作符:
在哈希中查找某一个键:
比较两个数组是否完全相同:
查找列表中是否存在某个元素:
智能匹配操作符与顺序无关,~~ 左右元素可以互换
2、智能操作符优先级
3、given语句
相当于c语言的switch语句
4、given可以测试多个条件,在default前用break,否则会导致default一直执行
5、笨拙匹...
分类:
其他好文 时间:
2014-08-22 00:25:55
阅读次数:
181
??
Organizing Attributes and Operations
组织属性和操作
When drawing a class, you don’t
have to show every attribute and every operation at once. In fact, in most cases, you can’t
(there are too man...
分类:
其他好文 时间:
2014-08-21 22:50:55
阅读次数:
423
Farm Tour
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 11495
Accepted: 4257
Description
When FJ's friends visit him on the farm, he likes to show them aro...
分类:
其他好文 时间:
2014-08-20 22:46:43
阅读次数:
259
Euler discovered the remarkable quadratic formula:
n² + n + 41
It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when n = 40, 402 + 40 + 41 = 40...
分类:
其他好文 时间:
2014-08-20 16:21:12
阅读次数:
244
Network Configuration
TL;DR
When Docker starts, it creates a virtual interface named docker0 on
the host machine. It randomly chooses an address and subnet from the private range defined by RF...
分类:
Web程序 时间:
2014-08-20 14:12:09
阅读次数:
591
Problem Description
After inventing Turing Tree, 3xian always felt boring when solving problems about intervals, because Turing Tree could easily have the solution. As well, wily 3xian made lots of n...
分类:
其他好文 时间:
2014-08-20 12:36:32
阅读次数:
382
$(document).ready(something); says: "when the HTML document is ready, do something!"$(document).ready(function() { var $target = $('li:nth-child(4)...
分类:
Web程序 时间:
2014-08-20 09:14:56
阅读次数:
275
概念中是只有静态方法才可以这样调用的,现在 被刷新了,于是我在方法中加入一行$this相关的操作,再运行,立马报错了,也就是PHP在调用方法时,没有严格限制,但是在方法内部执行时,遇 上$this这个变量时抛出: Using $this when not in object context
也就是...
分类:
Web程序 时间:
2014-08-19 16:15:24
阅读次数:
228