#!/bin/bash#提示用户输入echo -n "Please enter number"read n #读入输入的值放到变量n中sd=0rev=""on=$n #将变量n的值保存到变量on中,方便以后用到echo "You put number is $n"while [$n -gt 0]do...
分类:
其他好文 时间:
2014-07-16 23:03:53
阅读次数:
261
#!/bin/bash #判断命令行是否代带有两个文件名的参数 if [ "$1" = "" ] || [ "$2" = "" ] then echo "Please enter file name" exit 1 fi #判断目标文件是否存在 if [ -e $2 ] then echo "...
分类:
其他好文 时间:
2014-07-16 22:59:29
阅读次数:
153
My Spanish Translator Enter your text in English: Here is your ...
分类:
其他好文 时间:
2014-07-16 21:52:16
阅读次数:
247
有个需求,比如在一个列表中,取出一个元素的位置,如果出现重复都取出。例如:List = [2,3,10,324,88,29,12],可以求大于某个值的位置,也可以取某个值的位置。废话少说,直接上代码:%%测试用例 enter() -> A = [true,false,true,fa...
分类:
其他好文 时间:
2014-07-16 20:49:42
阅读次数:
186
Directive指令直接上实例index.html Drag ME I am Directive script.js:var dragDir=angular.module('drag', []);dragDir.directive("enter", fu...
分类:
Web程序 时间:
2014-07-14 08:18:59
阅读次数:
303
#region 回车键当Tab键使用 private void enter_KeyPress(object sender, KeyPressEventArgs e) { foreach (Control c in this.Controls) { c.KeyPress += new System.W...
分类:
其他好文 时间:
2014-07-14 08:09:07
阅读次数:
240
ps:使用Intellij IDEA编辑器有蛮长一段时间了。哈哈。整合一下常用的快捷、避免自己以后还要再找。顺序大概就是从上到下的Alt + ENTER : 自动修正,提示Alt + Insert : 超级插入 新建等等善用 Alt + 数字键 => 切换面板Ctrl + H : 类层次查看...
分类:
其他好文 时间:
2014-07-13 20:06:24
阅读次数:
246
1:执行命令 ssh-keygen rsa 产生秘钥 ,位于~/.ssh文件夹下(如果在这期间有什么提示,一路敲击enter下去,什么都不用输入)
2:执行命令 cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys 如果提示yes/no 直接输入 yes
验证ssh localhost 搞定 不用输入密码了...
分类:
其他好文 时间:
2014-07-13 15:32:29
阅读次数:
183
上次谈到了Fragment动画加载的异常问题,今天再聊聊它的动画加载loadAnimation的实现源代码:
Animation loadAnimation(Fragment fragment, int transit, boolean enter,
int transitionStyle) {
接下来具体看一下里面的源码部分,我将一部分一部分的讲解,首先是:...
分类:
移动开发 时间:
2014-07-11 00:02:40
阅读次数:
407
很简单,如果你制作的是一个只有一页的WORD小报,而忽然间你又想再添加一页,你可以按下Ctrl+HOME,然后按Ctrl+ENTER;或者按下Ctrl+END,然后按Ctrl+ENTER。其他的,想来你知道该怎么做了......
分类:
其他好文 时间:
2014-07-10 18:29:14
阅读次数:
174