原文:http://web.mit.edu/~mkgray/project/silk/root/afs/sipb/project/git/git-doc/git-diff.htmlgit diff可以比较working tree同index之间,index和git directory之间,worki...
分类:
其他好文 时间:
2014-07-03 10:49:30
阅读次数:
361
一、前言git add命令主要用于把我们要提交的文件的信息添加到索引库中。当我们使用git commit时,git将依据索引库中的内容来进行文件的提交。二、基本git add表示 add to index only files created or modified and not those de...
分类:
其他好文 时间:
2014-07-03 10:22:49
阅读次数:
218
1. Error: Dangling meta character '*' near index 0对字符串使用split()方法截取 * ? + / | 等字符的时候会报以下异常 Dangling meta character '?' near index 0 ?+、*、|、\等符号在正则表达示中...
分类:
编程语言 时间:
2014-07-03 07:13:36
阅读次数:
222
Wiki 安装:Linux(Redhat EL5.3)下安装配置MediaWikiwiki配置:配置文件:DefaultSettings.php //权限等配置左边导航条:/wiki/index.php/MediaWiki:Sidebar* cc项目 //一级导航** api|API文档* navi...
分类:
其他好文 时间:
2014-07-03 06:04:40
阅读次数:
266
1. TypeError: string indices must be integers, not str字符串类型取第index个字符的时候,应该传入int而不是str。如1a='abcdef'2printa[0]3#而不是 print a['0']更常见的情况是把一个string当成了字典在使...
分类:
其他好文 时间:
2014-07-03 00:36:01
阅读次数:
746
设置此属性值为 absolute 会将对象拖离出正常的文档流绝对定位而不考虑它周围内容的布局。假如其他具有不同 z-index 属性的对象已经占据了给定的位置,他们之间不会相互影响,而会在同一位置层叠。此时对象不具有外补丁( margin ),但仍有内补丁( padding )和边框( border...
分类:
Web程序 时间:
2014-07-01 18:55:36
阅读次数:
296
index.html requirejs main.js 合并js功能require.config({ // baseUrl: 'js/lib', 如果加载的这三个js不和main在一个目录下,就这样配置这个参数,或者...
分类:
Web程序 时间:
2014-07-01 18:44:08
阅读次数:
265
来源:http://ss64.com/osx/An A-Z Index of theApple OS Xcommand line alias Create an alias ? alloc List used and free memory apropos Search t...
分类:
移动开发 时间:
2014-07-01 17:46:48
阅读次数:
384
引子在了解MVC路由之前,必须了解的概念是"片段"。片段是指除主机名和查询字符串以外的、以"/"分隔的各个部分。比如,在http://site.com/Home/Index中,包含2个片段,第一个片段是Home,第二个片段是Index。URL匹配的特点:● 保守的:URL中的片段数量必须和路由规则中...
分类:
Web程序 时间:
2014-07-01 16:26:24
阅读次数:
319
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array....
分类:
其他好文 时间:
2014-07-01 15:22:44
阅读次数:
140