码迷,mamicode.com
首页 >  
搜索关键字:shell top    ( 49118个结果
边距折叠
发生折叠需要是相邻的非浮动元素;折叠发生在垂直外边距上,即margin-top/margin-bottom;折叠后取其中最大的那个margin值作为最终值;浮动元素不折叠。在水平书写模式下,发生margin折叠的是垂直方向,即margin-top/margin-bottom,在垂直书写模式下,mar...
分类:其他好文   时间:2014-05-08 12:28:04    阅读次数:302
Shell编程
1.shell程序格式 #! /bin/bash 首行#!指定shell编译器 # program 除首行的#外,其他的都表示注释 # read var1 read var2 if[ $var1 -eq $var2 ] then echo "$var1 is equal to $var2" elif...
分类:其他好文   时间:2014-05-08 10:36:56    阅读次数:252
Linux入门-shell使用技巧
tab 命令补全history 先前输入的命令,!+序号重新执行ctrl+l,clear 清屏ctrl+u 删除当前输入ctrl+c 终止命令ctrl+d 退出系统一、命名别名 #alias 查看已有的别名 #alias copy=cp 让copy可以执行cp的命令 #u...
分类:系统相关   时间:2014-05-08 09:12:38    阅读次数:314
hive 中 union all
hive 中的union all是不能在sql语句的第一层使用的,否则会报Top level UNION is not supported currently 错误;例如如下的方式:select id,name from user where type = 1union allselect id,n...
分类:其他好文   时间:2014-05-08 07:17:42    阅读次数:420
app启动速度
跟踪代码发现,应用启动时的白屏会持续到draw调用完成,这个过程中任何耗时操作将导致白屏时间增长。1.adb shell am start -W -n yourpakagename/MainActivity-W: wait for launch to complete 这里的launch to co...
分类:移动开发   时间:2014-05-08 07:15:37    阅读次数:340
shell编程实例
本文结合大量实例阐述如何编写一个shell脚本。 为什么要进行shell编程 在Linux系统中,虽然有各种各样的图形化接口工具,但是sell仍然是一个非常灵活的工具。Shell不仅仅是命令的收集,而且是一门非常棒的编程语言。您可以通过使用shell使大量的任务自动化,shell特别擅长系统...
分类:其他好文   时间:2014-05-08 06:17:09    阅读次数:405
Ubuntu 12.04 安装 gearman 以及php扩展安装脚本
#!/usr/bash #createbylhb #date2014-05-07 #descinstallgearmanandphpextensionforUbuntu12.04.4LTSPHP5.5 apt-getupdate #安装依赖库 apt-getinstalllibboost-all-devgperflibevent1-devlibcloog-ppl0 mkdir-pv/home/lhb/software&&cd/home/lhb/software #下载gearma..
分类:Web程序   时间:2014-05-08 02:56:01    阅读次数:365
HDOJ 3436 Queue-jumpers
N的范围很大,但Q的范围比较小.可以把TOP,QUERY操作用到的点分离出来,没用到的段缩成点 对于TOP 把x转到根,删除后加到开头位置 对于QUERY 旋转到根直接输出 对于RANK,递归 Queue-jumpers Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Othe...
分类:其他好文   时间:2014-05-07 22:36:28    阅读次数:559
python subprocess
defgetResult(cmd,timeout=2):#命令超时时间 deadline=time.time()+timeout r=subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE) whiletime.time()<deadlineandr.poll()isNone: time.sleep(0.1) ifr.poll()isNone:#检查子进程 r.kill() r.wait() return‘‘ r.wait() ..
分类:编程语言   时间:2014-05-07 22:30:17    阅读次数:504
Shell 使用函数输出
分类:其他好文   时间:2014-05-07 22:15:49    阅读次数:425
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!