
随记
li_001
123321
展开
-
学习资料
railshttp://ruby-china.org/topics/2814 http://guides.ruby-china.org/ http://zh-tw.railsbridge.org/intro-to-rails/ http://ruby-china.org/原创 2016-10-22 16:48:41 · 219 阅读 · 0 评论 -
php 二维数组对称的方法
<?php$a = array(1,2,3,4,5,6,5,4,3,2,1);$b = array(1,2,3,4,5,6);panduan($a);panduan($b);function panduan($arr){ if(count($arr) <= 1 ){ echo "对称"; }else{ $i = count($arr)-1;原创 2016-12-20 10:44:55 · 692 阅读 · 0 评论 -
git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
错误如下: Git push origin ssh: Could not resolve hostname ssh.github.com: Name or service not known fatal: Could not read from remote repository.Please make sure you have the correct access rights and t转载 2017-04-19 20:38:54 · 22851 阅读 · 4 评论 -
如何解决failed to push some refs to git
在使用git 对源代码进行push到gitHub时可能会出错,信息如下 此时很多人会尝试下面的命令把当前分支代码上传到master分支上。 $ git push -u origin master 但依然没能解决问题 出现错误的主要原因是github中的README.md文件不在本地代码目录中 可以通过如下命令进行代码合并【注:pull=fetch+merge] git原创 2017-06-19 13:03:54 · 376 阅读 · 0 评论