码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
记录bsh for scp 发布文件用法
for ip in 102 103 104 111 112 113 114 115 116 121 122; do sudo scp /etc/sudoers root@192.168.5.$ip:/etc/sudoers ;done
分类:其他好文   时间:2014-07-16 23:04:33    阅读次数:169
[整] Android Fragment 生命周期图
1. onAttach ------called once the fragment is associated with its activity2. onCreate-------called to do initial creation of the fragment3. onCreateVi...
分类:移动开发   时间:2014-07-11 10:23:34    阅读次数:252
2014 Super Training #7 B Continuous Login --二分
原题:ZOJ 3768http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3768一个结论:一个正整数总能用不超过三个前n项相加表示。先找一个的,在找两个,三个的,二分找,用lower_bound函数。代码:#include #i...
分类:其他好文   时间:2014-07-11 10:13:33    阅读次数:223
高震宇作业
实现部分代码关于view的德国国旗实现@implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, ...
分类:其他好文   时间:2014-07-11 09:46:07    阅读次数:200
2014 Super Training #7 E Calculate the Function --矩阵+线段树
原题:ZOJ 3772http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3772这题算是长见识了,还从没坐过矩阵+线段树的题目呢,不要以为矩阵就一定配合快速幂来解递推式的哦。由F(x)=F(x-1)+F(x-2)*A[x],转化...
分类:其他好文   时间:2014-07-11 09:03:35    阅读次数:236
Could not open Selected VM debug port (8700)
在运行项目的时候,eclipse弹出提示框“Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences.” 在终端输入:netstat -ano ...
分类:其他好文   时间:2014-07-10 23:03:07    阅读次数:432
Linux for循环执行命令注意事项
如果for循环命令中带有一些符号,需要用()括起来。 for i in {1..4}; do (python /data/UGCRobot/manage/Scheduler.py 1.log > /dev/null 2>&1 &); done...
分类:系统相关   时间:2014-07-10 22:30:56    阅读次数:387
LeetCode——Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For example, Given {1,2,3,4}, reorder it t...
分类:其他好文   时间:2014-07-10 20:43:37    阅读次数:210
倒计时
second=10echo-en"\n****倒计时$second秒开始****\t\t"foriin$(seq$second-11)do#echo-ne"\033[s"#echo-ne"\033[1;31m$i\033[0m"#sleep1#echo-ne"\033[u"echo-ne"\033[1;31m\b\b\b$i\033[0m"sleep1done
分类:其他好文   时间:2014-07-10 18:39:01    阅读次数:233
这是国旗吗?
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIView *redView = [[UIView...
分类:其他好文   时间:2014-07-10 16:50:02    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!