码迷,mamicode.com
首页 >  
搜索关键字:done    ( 2584个结果
ansible commands
用ansible实现较复杂的shell命令:1.ansible-i/tmp/batchtwoall-mshell-a"foriin\`psaux|grepproc_nodemanager|grep-vgrep|awk‘{print\$2}‘\`;doecho\$i;done"-k-uroot
分类:其他好文   时间:2015-03-12 15:19:30    阅读次数:121
linux脚本
#!/bin/bashforiin`seq19`;dorm-ffile10${i}done删除现在脚本所在目录的file101到109的文件—————————————————————————————————————————————#!/bin/bash#进入第一个循环设置变量nuwUser1,seq设置序列1到9fornewUser1in`seq19`;do..
分类:系统相关   时间:2015-03-12 01:09:38    阅读次数:302
解决perl编译问题
[root@mode tools]# echo 'export LC_ALL=C'>>/etc/profile [root@mode tools]# tail -l /etc/profile done unset i unset pathmunge export PATH=$PATH:/usr/local/sersync/bin export PATH=$PATH:/usr/local/mysq...
分类:其他好文   时间:2015-03-11 23:29:12    阅读次数:155
Leetcode Database All Done
至 2015-3-11
分类:数据库   时间:2015-03-11 21:09:58    阅读次数:128
JS组件化验证检测
作者:Jiang, Jilin 在web开发过程中,我们时常会遇到输入检测的情况。如果只是简单的输入验证检测,例如邮箱、电话等。我们可以简单的使用if…else if…来依次判断。但是如果这些判断存在延迟检测(例如ajax验证),再使用if…else if…已经无法满足需求了。 但是好在,利用jQuery的deffer方法。通过done(func)嵌套,可以实现序列化的检测: $...
分类:Web程序   时间:2015-03-09 11:01:04    阅读次数:131
美团2015校招研发笔试题——字母排序
题目来源牛客网: http://www.nowcoder.com/questionTerminal/3c334863c02443cdb61b2d73c1edf071?orderByHotValue=0&query=一组随机排列的字母数组&done=0&pos=9一组随机排列的字母数组。请编写一个时间...
分类:编程语言   时间:2015-03-08 22:50:47    阅读次数:293
js禁用默认鼠标滑轮
一、参考插件jQuery mouse wheel 二、样例代码 Scroll Test 三、done
分类:Web程序   时间:2015-03-06 23:26:34    阅读次数:226
for循环
循环需要指定进入条件和退出条件、常用的循环有for,while,untilfor循循环for变量in列表;do循环体done如何生成列表{1..100},表示1到100的整数列表seq10;表示1到10的整数列表seq510;表示5到10的整数列表seq1210;表示1-10的奇数列表,步长为2seq2210;表示1-10的偶数列表,步长..
分类:其他好文   时间:2015-03-06 17:27:51    阅读次数:180
OpenStack之keystone创建用户脚本
#!/bin/bash fortenantinadmindemoservice do tenantname=`keystonetenant-list|awk"/${tenant}/{print$4}"` if[-z"${tenantname}"];then keystonetenant-create--name${tenant}--description"Openstack${tenant}Tenant" else echo"${tenant}tenanthavecreated" fi done role..
分类:其他好文   时间:2015-03-05 19:37:43    阅读次数:145
Go channel同步
我们可以使用Channel来同步不同goroutines的执行。看下面的代码:package main import "fmt"import "time" //这个函数会在新的goroutine中运行,执行结束时会给done channel中传入值true//注意到中间有sleep了一秒func w...
分类:其他好文   时间:2015-03-04 11:01:13    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!