码迷,mamicode.com
首页 >  
搜索关键字:do it    ( 12356个结果
Lua语言备忘
1.Lua保留字:and break do else elseifend false for funct...
分类:其他好文   时间:2014-08-12 18:13:24    阅读次数:177
nginx多域名ssl证书以及lua模块的编译安装
#!/bin/bash #unzip?zip&tar?file function??untarfile(){ for?i?in?$(?ls?.?|grep?-v?.sh) do val=$(echo?$i?|?grep?".zip$"?|wc?-l) if?[[?"$val"??-eq??1?]];then dirname=$(echo?...
分类:其他好文   时间:2014-08-12 17:47:04    阅读次数:237
Shell脚本-----while循环和until循环
while测试条件do语句1语句2done测试条件:条件满足就循环,直到条件不满足就退出循环while循环如何退出?在循环体中改变测试条件相应的变量值补充:算术运算符sum=$[$sum+$i]=sum+=$i-=*=sum+=1=letsum++sum--sam=3while[$sam-le5]doletsam++done例子:用户随机输入一个数值,就循..
分类:其他好文   时间:2014-08-12 17:40:45    阅读次数:282
LVS多VIP脚本
#!/bin/bash #description:Configrealserverloandapplynoarp SNS_VIP=( 192.168.100.210 192.168.100.220 ) case"$1"in start) for((i=0;i<`echo${#SNS_VIP[*]}`;i++)) do interface="lo:`echo${SNS_VIP[$i]}|awk-F.‘{print$4}‘`" /sbin/ifconfig$interface${SNS_VIP[$i]}br..
分类:其他好文   时间:2014-08-12 17:37:45    阅读次数:205
Python流程控制 if / for/ while
在Python中没有switch语句If语句if condition:do sthelif condition: Do sthelse: Do sthwhile语句有一个可选的else从句while condition: do sthelse: do sthfor循环for i in range(1...
分类:编程语言   时间:2014-08-12 16:38:44    阅读次数:193
Convert JS object to JSON string
Modern browsers (IE8, FF3, Chrome etc.) have native JSON support built in (Same API as with JSON2).So as long you're not dealing with IE6/7 you can do...
分类:Web程序   时间:2014-08-12 13:08:24    阅读次数:217
关于DataTables一些小结
最近项目中使用了DataTables,故小结了一下。导入CSS文件/js/datatable/css/jquery.dataTables.min.css"/>导入JS文件后台ajax请求:var url = "getSj.do";var dataTable;var options = { "bPag...
分类:其他好文   时间:2014-08-12 10:10:53    阅读次数:193
关于performSelector
偶尔机会接触到了它。由网上的知识总结了一个小代码。希望,对大家有用。- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.title...
分类:其他好文   时间:2014-08-11 23:49:13    阅读次数:260
PX Deq: Execution Msg,PX Deq: Execute Reply等待事件
PX Deq: Execution Msg Occurs when a parallel slave is waiting to be told what to do. This is normally considered an idle event, but can cause excessive CPU in some cases. Solution Reduc...
分类:其他好文   时间:2014-08-11 21:38:52    阅读次数:485
poj 2549 --- 传说中的用“桶”防止HASH冲突
http://poj.org/problem?id=2549 维基百科有3Sum算法:https://en.wikipedia.org/wiki/3SUM sort(S); for i=0 to n-3 do a = S[i]; k = i+1; l = n-1; while (k<l) do b = S[k]; c = ...
分类:其他好文   时间:2014-08-11 21:23:53    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!