function toDecimal(x) { var f = parseFloat(x); if (isNaN(f)) { return; } //isNaN判断传入的数字是否有效 f = Math.round(x*100)/100; 先执行Math.round(x*100) r...
分类:
其他 时间:
2015-12-26 11:31:41
收藏:
0 评论:
0 赞:
0 阅读:
184
1144. The Emperor's RiddleTime limit: 1.0 secondMemory limit: 4 MBBackgroundIn the olden times there was a young emperor who was the bravest, wisest, ...
分类:
其他 时间:
2015-12-26 11:31:21
收藏:
0 评论:
0 赞:
0 阅读:
172
1251. Cemetery ManagerTime limit: 1.0 secondMemory limit: 64 MBThere is a tradition at the USU championships to call the most hard-to-solve problems c...
分类:
其他 时间:
2015-12-26 11:31:11
收藏:
0 评论:
0 赞:
0 阅读:
173
项目使用CentOS7作为生产环境,而CentOS7使用firewalld替代了原来的iptables。 开启端口 firewall-cmd --zone=public --add-port=80/tcp --permanent命令含义:--zone #作用域--add-port=80/tcp #添...
分类:
其他 时间:
2015-12-26 11:31:01
收藏:
0 评论:
0 赞:
0 阅读:
229
Iptables DDOS/CC 自动屏蔽脚本May 20, 2013最近不停地被 CC (DDOS的一种)频繁干扰,分享一个 iptables 屏蔽 DDOS 的脚本。让 crond 每分钟运行一次。############### KILL DDOS ##############iptables_...
分类:
其他 时间:
2015-12-26 11:30:21
收藏:
0 评论:
0 赞:
0 阅读:
121
题目:Implement pow(x, n).思路:二分法package math;public class Pow { public double myPow(double x, int n) { if (n == 0) return 1; if (n == 1)...
分类:
其他 时间:
2015-12-26 11:30:11
收藏:
0 评论:
0 赞:
0 阅读:
148
1.#define定义的常量 kCATransitionFade 交叉淡化过渡 kCATransitionMoveIn 新视图移到旧视图上面 kCATransitionPush 新视图把旧视图推出去 kCATransitionReveal 将旧视图移开,显示下面的新视图2.用字符串表示 pageCu...
分类:
其他 时间:
2015-12-26 11:29:51
收藏:
0 评论:
0 赞:
0 阅读:
194
1146. Maximum SumTime limit: 0.5 secondMemory limit: 64 MBGiven a 2-dimensional array of positive and negative integers, find the sub-rectangle with t...
分类:
其他 时间:
2015-12-26 11:29:41
收藏:
0 评论:
0 赞:
0 阅读:
164
在中国,庞大的大学生群体支撑着校园互联网经济的运转,而在互联网+的经济大潮下,各类校园O2O也不断涌现出来,他们或从物流切入,或从便利店切入,或从社交切入……大量的创业者和传统企业都在开始涌向校园O2O。 从今年的资本市场来看,资本对于校园经济也是表现出了很高的热度,今年有很多校园O2O平...
分类:
其他 时间:
2015-12-26 11:28:51
收藏:
0 评论:
0 赞:
0 阅读:
127
There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it cost...
分类:
其他 时间:
2015-12-26 11:28:41
收藏:
0 评论:
0 赞:
0 阅读:
185
Vagrant是一款用来构建虚拟开发环境的工具,非常适合php/python/ruby/java 这类语言开发 web 应用,“代码在我机子上运行没有问题”这种说辞将成为历史。我们可以通过 Vagrant 封装一个Linux的开发环境,分发给团队成员。成员可以在自己喜欢的桌面系统(Mac/Windo...
分类:
其他 时间:
2015-12-26 11:28:12
收藏:
0 评论:
0 赞:
0 阅读:
206
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization af....
分类:
其他 时间:
2015-12-26 11:28:01
收藏:
0 评论:
0 赞:
0 阅读:
213
start nginx启动nginx -s stop nginx -s quitnginx停止命令stop与quit参数的区别在于stop是快速停止nginx,可能并不保存相关信息,quit是完整有序的停止nginx,并保存相关信息nginx -s reload当你改变了nginx配置信息并需要重....
分类:
其他 时间:
2015-12-26 11:27:51
收藏:
0 评论:
0 赞:
0 阅读:
192
1. 启动ZK服务: ./zkServer.sh start 2. 查看ZK服务状态: ./zkServer.sh status 3. 停止ZK服务: ./zkServer.sh stop 4. 重启ZK服务: ./zkServer.sh restart 连接上zk;./...
分类:
其他 时间:
2015-12-26 11:27:31
收藏:
0 评论:
0 赞:
0 阅读:
175
1、在使用block前需要对block指针做判空处理。不判空直接使用,一旦指针为空直接产生崩溃。if (!self.isOnlyNet) { if (succBlock == NULL) { //后面使用block之前要先做判空处理 return; } id data...
分类:
其他 时间:
2015-12-26 11:27:21
收藏:
0 评论:
0 赞:
0 阅读:
131
在OS中,0-9 中的每个数字都代表一个流。现在已指定的有3个:【0:标准输入流】、【1:标准输出流】、【2:错误输出流】,其余的还未指定。基本IO操作cmd > file 把 stdout 重定向到 file 文件中;cmd >> file 把 stdout 重定向到 file 文件中(追加);c...
分类:
其他 时间:
2015-12-26 11:27:11
收藏:
0 评论:
0 赞:
0 阅读:
150
1249. Ancient NecropolisTime limit: 5.0 secondMemory limit: 4 MBAerophotography data provide a bitmap picture of a hard-to-reach region. According to ...
分类:
其他 时间:
2015-12-26 11:26:51
收藏:
0 评论:
0 赞:
0 阅读:
214
1. 精通性能测试的基本概念,过程,方法论,了解性能工程;2. 精通1个商业性能测试工具+1个开源性能测试工具,知道工具可以做什么,不可以做什么,以及工具使用中常见的问题和解决思路;3. 扎实的计算机专业基础知识,包括计算机组成原理、操作系统、数据库原理、计算机网络原理;4. 熟悉至少1个常用的数据...
分类:
其他 时间:
2015-12-26 11:26:11
收藏:
0 评论:
0 赞:
0 阅读:
174
回文子串 总时间限制:1000ms 内存限制:65536kB描述 给定一个字符串,输出所有长度至少为2的回文子串。 回文子串即从左往右输出和从右往左输出结果是一样的字符串, 比如:abba,cccdeedccc都是回文字符串。输入 一个字符串,由字母或数字组成。长度500以内。输出 输出所有的回文子...
分类:
其他 时间:
2015-12-26 11:26:01
收藏:
0 评论:
0 赞:
0 阅读:
1137
1855: [Scoi2010]股票交易Time Limit:5 SecMemory Limit:64 MBSubmit:909Solved:420[Submit][Status][Discuss]Description最近lxhgww又迷上了投资股票,通过一段时间的观察和学习,他总结出了股票行情的...
分类:
其他 时间:
2015-12-26 11:25:21
收藏:
0 评论:
0 赞:
0 阅读:
261