码迷,mamicode.com
首页 >  
搜索关键字:route add    ( 40374个结果
如何解决git提交代码冲突
当我们使用git提交代码时,别人可能也同时修改了我们修改的文件,但是别人的先合入到配置库里边,这样当我们的提交要合入时,就会产生冲突,可以使用以下步骤来解决冲突: (1) git rebase    分支名称   本地分支名称 (2)rebase之后,就会显示冲突,到目标文件进行修改 (3)git add . (4)git rebase --continue (5) git rebase...
分类:其他好文   时间:2014-05-10 09:59:20    阅读次数:643
LinkedList implement
public class LinkedList { Node head = null; Node tail = null; int length = 0; public void add(Object object) { Node node  = new Node(object, null); if (head == null) { head = tail = nod...
分类:其他好文   时间:2014-05-07 08:24:17    阅读次数:306
ArrayList implement
public class ArrayList { Object[] objects = new Object[10]; int index = 0; public void add(Object object) { if (index == objects.length) { Object[] newObjects = new Object[objects.length*2]; ...
分类:其他好文   时间:2014-05-07 07:57:10    阅读次数:257
【Leetcode】Two Sum
[Question] Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to t...
分类:其他好文   时间:2014-05-07 05:37:44    阅读次数:278
emacs中eshell的快捷键配制
eshell是emacs shell的简称,是emacs自带的shell.开始设置的时候还在想是否要找到它的key map (eshell-mode-map?). 原来它是采用hook设置,如下所示 (add-hook 'eshell-mode-hook (lambda () (local-set-key (kbd "C-j") 'switch-to...
分类:其他好文   时间:2014-05-07 05:25:39    阅读次数:253
永久修改redhat的default route
1,可以用route命令临时修改: route add default gw 2, 通过修改/etc/sysconfig/network 文件永久修改: 脚本: #!/bin/sh #configure default gw #   $1 is ip of gateway defgw=$1 sed -i "s/NETWORKING.*/NETWORKING=yes/" /et...
分类:其他好文   时间:2014-05-06 23:37:22    阅读次数:374
hdu1223
n个数,只能用 F[i][j]=(F[i-1][j]+F[i-1][j-1])*j F[i][j]代表i个数,有j个不同值的情况。比如A 大数模板 #include #include const int MAX =505; struct BigNum { int num[MAX]; int len; } a[51][51]; BigNum Add(...
分类:其他好文   时间:2014-05-06 23:06:51    阅读次数:364
Ubuntu如何查找网关
在终端中输入:route显示结果如下:红色圆圈就是网关。
分类:其他好文   时间:2014-05-06 18:23:48    阅读次数:273
ubuntu 下安装nodejs以及pm2
ubuntu12.04服务器可以使用apt-get方式安装NodeJS,但是,安装完后的版本为v0.6.12的版本,如果我们想要使用新一点的版本需要做如下配置:apt-getinstallpython-software-properties apt-add-repositoryppa:chris-lea/node.js apt-getupdate apt-getinstallnodejs安装完成后可以..
分类:Web程序   时间:2014-05-06 16:45:52    阅读次数:378
Web Api Route 注册要放在 Mvc Route 注册前
今天想研究一下Web Api,写了一个测试Api,打开网站后浏览一下,可是却提示找不到方法,刚开始以为哪里配置错了,可找了半天也没见。因为我是在一个现有Mvc站点做的Demo,所以打算新建一个Mvc网站,再试一下,新站点是正常的,对比一下Global文件,发现WebApiConfig和RouteCo...
分类:Windows程序   时间:2014-05-06 13:10:12    阅读次数:448
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!