当git clone之后,直接git pull它会自动匹配一个正确的remote url是因为在config文件中配置了以下内容:1 [branch "master"]2 remote = origin3 merge = refs/heads/master表明:1.git处于mast...
分类:
其他好文 时间:
2015-06-03 11:39:27
阅读次数:
148
[root@desktop2 ~]# fdisk -l Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes ? ?Device Boot? ? ? Start?...
分类:
移动开发 时间:
2015-06-02 09:34:04
阅读次数:
283
原理和上章获取段子一样,只不过是换了解析的内容。
代码:
#-*- coding: utf-8 -*-
import urllib2
import re
def GetPageContent(page_url,heads):
try:
req = urllib2.Request(page_url,headers=heads)
resp = urllib...
分类:
编程语言 时间:
2015-05-25 10:02:53
阅读次数:
166
The probability of getting \(k\) heads when flipping \(n\) coins is:\[P(E)={n\choose k}p^k(1-p)^{n-k}\]
分类:
其他好文 时间:
2015-05-10 09:37:09
阅读次数:
102
.....首先看下 LZ 的分区情况:>$ sudo fdisk -lDisk /dev/sda: 120.0 GB, 120034123776 bytes255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectorsUni...
分类:
系统相关 时间:
2015-05-09 21:57:11
阅读次数:
256
有时候我们使用git push向远程仓库推送的时候,会报错如下:
[remote rejected] master -> master (branch is currently checked out)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By defaul...
分类:
其他好文 时间:
2015-05-03 22:09:49
阅读次数:
143
查看新硬盘&创建分区xxx@xxx:/dev$ sudo fdisk -l[sudo] password for xxx: Disk /dev/sda: 85.9 GB, 85899345920 bytes255 heads, 63 sectors/track, 10443 cylinders, t...
分类:
其他好文 时间:
2015-04-12 20:41:02
阅读次数:
175
在使用Git Push代码到数据仓库时,提示如下错误:[remote rejected] master -> master (branch is currently checked out)错误原型 remote: error: refusing to update checked out bran...
分类:
其他好文 时间:
2015-03-06 12:27:10
阅读次数:
184
fdisk -lDisk /dev/vda: 8589 MB, 8589934592 bytes255 heads, 63 sectors/track, 1044 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size...
分类:
其他好文 时间:
2015-03-02 16:18:26
阅读次数:
219
第七章 Git重置: Git提供了一个挽救机制,通过.git/logs目录下日志文件记录了分支的变更。 master分支的日志文件.git/logs/refs/heads/master,显示最后5行: $ tail -5 .git/logs/refs/heads/master 也可以用 g...
分类:
其他好文 时间:
2015-02-04 12:29:21
阅读次数:
126