(1)进入tmp文件夹 :cmd /tmp (一般人们都喜欢把要下载的东西放在tmp目录下),在tmp目录下新建一个software文件夹用来存放你即将要下载的软件sudo mkdir software ,给文件夹赋值权限:sudo chmod 777 software(2)上官网下载jdk,下载好...
分类:
其他好文 时间:
2014-07-03 10:30:43
阅读次数:
150
使用 mkdir 的 -p 选项并在单个命令中创建所有父目录及其子目录要容易得多。但是即使对于知道此选项的管理员,他们在命令行上创建子目录时也仍然束缚于逐步创建每级子目录。花时间有意识地养成这个好习惯是值得的.清单 2. 好习惯 1 的示例:使用一个命令来定义目录树~ $ mkdir -p tmp/...
分类:
其他好文 时间:
2014-07-02 23:39:26
阅读次数:
398
1 把自己介绍git系统 git config — global user.name “your name” git config — global user.email “email name”2 导入一个新的git项目 新建一个git目录 mkdir rocroket 进入到此目录 cd ...
分类:
其他好文 时间:
2014-07-02 19:23:16
阅读次数:
177
#include#includeusing namespace std;int main(){ float x; cin>>x; cout<<setiosflags(ios::fixed)<<setprecision(2); if(x<=1600) cout<<0.00<<endl; else i....
分类:
其他好文 时间:
2014-07-02 18:23:21
阅读次数:
177
#include#includeusing namespace std;int main(){ float x; cin>>x; cout<<setiosflags(ios::fixed)<<setprecision(2); if(x<=15) cout<<4*x/3<<endl; else c.....
分类:
其他好文 时间:
2014-07-02 18:10:27
阅读次数:
200
sudo apt-get install erlang-manpages然后就可以用如下命令查看模块的帮助文件了:erl -man lists
分类:
其他好文 时间:
2014-07-02 10:04:25
阅读次数:
310
man是自定义的对象,使用var tim = JSON.stringify(man); var newman=JSON.parse(tim)后newman的类型是“object”并不是一个Man,怎么才能变回一个Man呢?
function Man() {
this._type = "man";
this.name="";
this.run = function () {...
分类:
编程语言 时间:
2014-07-02 09:51:34
阅读次数:
187
题目
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" i...
分类:
其他好文 时间:
2014-07-02 09:49:04
阅读次数:
271
prototype的经典使用场景就是为对象增加属性和方法,如给自定义的Man对象增加个姓名属性和语言方法:
function man() {
this.age = "22";
}
var tom = new man();
man.prototype.name = "tom";
man.prototype.say = function () {
...
分类:
编程语言 时间:
2014-07-02 08:50:51
阅读次数:
261