extension UIView { func colorOfPoint (point: CGPoint) -> UIColor { var pixel = UnsafePointer<CUnsignedChar>.alloc(4) let colorSpace = CGColorSpaceCrea ...
分类:
编程语言 时间:
2016-10-11 16:32:18
阅读次数:
480
我想大家都知道Nagios监控DB2数据库使用check_db2_oracle插件,但是在使用之前,Nagios服务器上需要安装运行环境。结合我自生多次的测试,我重点讲述如何在CenOS6.764bit环境下安装插件check_db2_oracle的运行环境。Ok,废话少说。let‘sdoit!1.CenOS6.7环境下安装插件check_db..
分类:
移动开发 时间:
2016-10-11 01:07:52
阅读次数:
695
思路:polya裸题,如果是旋转,对于旋转i格的循环节长度len=lcm(i,n)/i,个数就是n/len=gcd(i,n);如果是翻转,奇数个点对称轴就是一个点一条边,那么循环节个数即n/2+1, 偶数个点有n/2条对称轴穿过两个点,循环节个数是n/2+1,n/2条对称轴穿过两条边,循环节个数就是 ...
分类:
其他好文 时间:
2016-10-10 23:46:01
阅读次数:
236
一.let,const 1.因为块级的作用域,这样打印01234,循环外打印i会报错 用es6以后,可以用块级作用域代替闭包 2.不存在变量提升 一个大括号就是一个作用域,let tmp使该作用域绑定了tmp,let前赋值就报错。 3.不能重复声明 4.块级作用域内声明的函数类似于let,对作用域之 ...
分类:
其他好文 时间:
2016-10-09 13:58:45
阅读次数:
261
Brackets Sequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 30738 Accepted: 8817 Special Judge Description Let us define a regular br ...
分类:
其他好文 时间:
2016-10-08 19:53:53
阅读次数:
174
1、箭头函数var aFunction = x=>x*x;aFunction(a);2、块级作用域{let}3、``(替代+号进行字符串拼接),var name = "qiaoge";`i am ${name}`4、let [name, age, school, income] = ["jack", ...
分类:
其他好文 时间:
2016-10-08 19:52:41
阅读次数:
89
Description Let N be the set of all natural numbers {0 , 1 , 2 , . . . }, and R be the set of all real numbers. wi, hi for i = 1 . . . n are some elem ...
分类:
其他好文 时间:
2016-10-08 01:40:24
阅读次数:
151
This time let us consider the situation in the movie "Live and Let Die" in which James Bond, the world's most famous spy, was captured by a group of d ...
分类:
其他好文 时间:
2016-10-08 01:28:36
阅读次数:
261
Let us consider sets of positive integers less than or equal to n. Note that all elements of a set are different. Also note that the order of elements ...
分类:
其他好文 时间:
2016-10-07 18:07:12
阅读次数:
151
传送门 Description Let S be a number string, and occ(S,x) means the times that number x occurs in S. i.e. S=(1,2,2,1,3),occ(S,1)=2,occ(S,2)=2,occ(S,3)=1. ...
分类:
其他好文 时间:
2016-10-07 13:35:15
阅读次数:
181