Skip to content

Commit 39a2aac

Browse files
committed
fix: fix typo && closed phodal#27
1 parent 443e639 commit 39a2aac

9 files changed

+897
-873
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ html: markdown
1616
--include-before-body $(include_dir)/share.html \
1717
--include-after-body $(include_dir)/stats.html \
1818
--title-prefix $(title) \
19-
-smart \
2019
--toc
2120

2221
epub: markdown

chapters/02-github-fundamentals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jQuery[^jQuery]在发布版本``2.1.3``,一共有152个commit。我们可以
107107
108108
> GitHub可以托管各种git库,并提供一个web界面,但与其它像 SourceForge或Google Code这样的服务不同,GitHub的独特卖点在于从另外一个项目进行分支的简易性。为一个项目贡献代码非常简单:首先点击项目站点的“fork”的按钮,然后将代码检出并将修改加入到刚才分出的代码库中,最后通过内建的“pull request”机制向项目负责人申请代码合并。已经有人将GitHub称为代码玩家的MySpace。
109109
110-
### 在GitHub创建项目
110+
### 在 GitHub 创建项目
111111
112112
接着,我们试试在上面创建一个项目:
113113
@@ -139,7 +139,7 @@ git push -u origin master
139139
140140
如果你完成了上面的步骤之后,那么我想你想知道你需要怎样的项目。
141141
142-
##GitHub流行项目分析
142+
## GitHub 流行项目分析
143143
144144
之前曾经分析过一些GitHub的用户行为,现在我们先来说说GitHub上的Star吧。(截止: 2015年3月9日23时。)
145145

chapters/03-build-github-project.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ branches:
324324
这是一种驱动写出更规范js的方法。
325325

326326

327-
###Mocha
327+
### Mocha
328328

329329
> Mocha 是一个优秀的JS测试框架,支持TDD/BDD,结合 should.js/expect/chai/better-assert,能轻松构建各种风格的测试用例。
330330
@@ -405,7 +405,7 @@ it('should return book label & url', function () {
405405

406406
这就是个问题了,于是偶然间看到了一个叫code climate的网站。
407407

408-
###Code Climate
408+
### Code Climate
409409

410410
> Code Climate consolidates the results from a suite of static analysis tools into a single, real-time report, giving your team the information it needs to identify hotspots, evaluate new approaches, and improve code quality.
411411
@@ -435,7 +435,7 @@ A | lib/url_handler.js | 9 | 0 | 5 | 2.2 | 94.1% | 0
435435

436436
![Coverage][1]
437437

438-
###代码的坏味道
438+
### 代码的坏味道
439439

440440
于是我们就打开``lib/database/sqlite_helper.js``,因为其中有两个坏味道
441441

chapters/06-refactor-project.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ Windows/Linux: 木有
309309

310310
鼠标: **Refactor** | ``Replace Temp with Query``
311311

312-
####重构之前
312+
#### 重构之前
313313

314314
过多的临时变量会让我们写出更长的函数,函数不应该太多,以便使功能单一。这也是重构的另外的目的所在,只有函数专注于其功能,才会更容易读懂。
315315

@@ -366,7 +366,7 @@ public class replaceTemp {
366366

367367
3. 选择``basePrice````Inline Method``
368368

369-
####Intellij IDEA重构
369+
#### Intellij IDEA重构
370370

371371
在Intellij IDEA的文档中对此是这样的例子
372372

chapters/07-tdd-with-autotest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ req.end();
9696

9797
pip install twill
9898

99-
###Twill 登陆测试
99+
### Twill 登陆测试
100100

101101
1.启动我们的应用。
102102

@@ -143,7 +143,7 @@ req.end();
143143

144144
发现重定向到首页了。
145145

146-
###Twill 测试脚本
146+
### Twill 测试脚本
147147

148148
当然我们也可以用脚本直接来测试``login.twill``:
149149

chapters/11-analytics.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ draw_date("data/2014-01-01-0.json")
146146

147147
不过这个是osrc的分析结果。
148148

149-
###python github 每周情况分析
149+
### python github 每周情况分析
150150

151151
看一张分析后的结果
152152

@@ -183,7 +183,7 @@ draw_date("data/2014-01-01-0.json")
183183
8474, 7984, 12933, 13504, 13763, 13544, 12940,
184184
7119, 7346, 13412, 14008, 12555
185185

186-
###Python 数据分析
186+
### Python 数据分析
187187

188188
重写了一个新的方法用于计算提交数,直至后面才意识到其实我们可以算行数就够了,但是方法上有点hack
189189

@@ -232,7 +232,7 @@ def get_month_total():
232232

233233
接着我们需要去遍历每个结果,后面的后面会发现这个效率真的是太低了,为什么木有多线程?
234234

235-
###Python Matplotlib图表
235+
### Python Matplotlib图表
236236

237237
让我们的matplotlib来做这些图表的工作
238238

@@ -335,7 +335,7 @@ sudo zypper install sqlite3
335335

336336
不过,用yast2也很不错,不是么。。
337337

338-
###数据导入
338+
### 数据导入
339339

340340
需要注意的是这里是需要python2.7,起源于对gzip的上下文管理器的支持问题
341341

@@ -413,7 +413,7 @@ date_re = re.compile(r"([0-9]{4})-([0-9]{2})-([0-9]{2})-([0-9]+)\.json.gz")
413413
414414
更好的方案?
415415
416-
###Redis
416+
### Redis
417417
418418
查询用户事件总数
419419
@@ -462,7 +462,7 @@ pipe.execute()
462462
463463
到这里我们算是知道了OSRC的数据库部分是如何工作的。
464464
465-
####Redis 查询
465+
#### Redis 查询
466466
467467
主要代码如下所示
468468
@@ -505,7 +505,7 @@ def get_vector(user, pipe=None):
505505
506506
osrc最有意思的一部分莫过于flann,当然说的也是系统后台的设计的一个很关键及有意思的部分。
507507
508-
##邻近算法与相似用户
508+
## 邻近算法与相似用户
509509
510510
邻近算法是在这个分析过程中一个很有意思的东西。
511511

chapters/14-streak-your-github.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ GitHub连击
136136

137137
这个可以从两部分说起:
138138

139-
####重构Skill Tree
139+
#### 重构 Skill Tree
140140

141141
原来的是
142142

@@ -149,7 +149,7 @@ GitHub连击
149149

150150
代码: [https://github.com/phodal/skillock](https://github.com/phodal/skillock)
151151

152-
####技能树Sherlock
152+
#### 技能树Sherlock
153153

154154
- D3.js
155155
- Dagre-D3.js
@@ -311,7 +311,7 @@ GitHub连击
311311

312312
这也是下一个值得提高的地方。
313313

314-
###其他
314+
### 其他
315315

316316
是时候写这个小结了。从不会写代码,到写代码是从0到1的过程,但是要从1到60都不是一件容易的事。无论是刷GitHub也好(不要是自动提交),或者是换工作也好,我们都在不断地练习。
317317

github-roam.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ jQuery[^jQuery]在发布版本``2.1.3``,一共有152个commit。我们可以
324324
325325
> GitHub可以托管各种git库,并提供一个web界面,但与其它像 SourceForge或Google Code这样的服务不同,GitHub的独特卖点在于从另外一个项目进行分支的简易性。为一个项目贡献代码非常简单:首先点击项目站点的“fork”的按钮,然后将代码检出并将修改加入到刚才分出的代码库中,最后通过内建的“pull request”机制向项目负责人申请代码合并。已经有人将GitHub称为代码玩家的MySpace。
326326
327-
### 在GitHub创建项目
327+
### 在 GitHub 创建项目
328328
329329
接着,我们试试在上面创建一个项目:
330330
@@ -356,7 +356,7 @@ git push -u origin master
356356
357357
如果你完成了上面的步骤之后,那么我想你想知道你需要怎样的项目。
358358
359-
##GitHub流行项目分析
359+
## GitHub 流行项目分析
360360
361361
之前曾经分析过一些GitHub的用户行为,现在我们先来说说GitHub上的Star吧。(截止: 2015年3月9日23时。)
362362
@@ -759,7 +759,7 @@ branches:
759759
这是一种驱动写出更规范js的方法。
760760

761761

762-
###Mocha
762+
### Mocha
763763

764764
> Mocha 是一个优秀的JS测试框架,支持TDD/BDD,结合 should.js/expect/chai/better-assert,能轻松构建各种风格的测试用例。
765765
@@ -840,7 +840,7 @@ it('should return book label & url', function () {
840840

841841
这就是个问题了,于是偶然间看到了一个叫code climate的网站。
842842

843-
###Code Climate
843+
### Code Climate
844844

845845
> Code Climate consolidates the results from a suite of static analysis tools into a single, real-time report, giving your team the information it needs to identify hotspots, evaluate new approaches, and improve code quality.
846846
@@ -870,7 +870,7 @@ A | lib/url_handler.js | 9 | 0 | 5 | 2.2 | 94.1% | 0
870870

871871
![Coverage][1]
872872

873-
###代码的坏味道
873+
### 代码的坏味道
874874

875875
于是我们就打开``lib/database/sqlite_helper.js``,因为其中有两个坏味道
876876

@@ -1452,7 +1452,7 @@ Windows/Linux: 木有
14521452

14531453
鼠标: **Refactor** | ``Replace Temp with Query``
14541454

1455-
####重构之前
1455+
#### 重构之前
14561456

14571457
过多的临时变量会让我们写出更长的函数,函数不应该太多,以便使功能单一。这也是重构的另外的目的所在,只有函数专注于其功能,才会更容易读懂。
14581458

@@ -1509,7 +1509,7 @@ public class replaceTemp {
15091509

15101510
3. 选择``basePrice````Inline Method``
15111511

1512-
####Intellij IDEA重构
1512+
#### Intellij IDEA重构
15131513

15141514
在Intellij IDEA的文档中对此是这样的例子
15151515

@@ -1647,7 +1647,7 @@ req.end();
16471647
16481648
pip install twill
16491649
1650-
###Twill 登陆测试
1650+
### Twill 登陆测试
16511651
16521652
1.启动我们的应用。
16531653
@@ -1694,7 +1694,7 @@ req.end();
16941694
16951695
发现重定向到首页了。
16961696
1697-
###Twill 测试脚本
1697+
### Twill 测试脚本
16981698
16991699
当然我们也可以用脚本直接来测试``login.twill``:
17001700
@@ -2280,7 +2280,7 @@ draw_date("data/2014-01-01-0.json")
22802280
22812281
不过这个是osrc的分析结果。
22822282
2283-
###python github 每周情况分析
2283+
### python github 每周情况分析
22842284
22852285
看一张分析后的结果
22862286
@@ -2317,7 +2317,7 @@ draw_date("data/2014-01-01-0.json")
23172317
8474, 7984, 12933, 13504, 13763, 13544, 12940,
23182318
7119, 7346, 13412, 14008, 12555
23192319
2320-
###Python 数据分析
2320+
### Python 数据分析
23212321
23222322
重写了一个新的方法用于计算提交数,直至后面才意识到其实我们可以算行数就够了,但是方法上有点hack
23232323
@@ -2366,7 +2366,7 @@ def get_month_total():
23662366
23672367
接着我们需要去遍历每个结果,后面的后面会发现这个效率真的是太低了,为什么木有多线程?
23682368
2369-
###Python Matplotlib图表
2369+
### Python Matplotlib图表
23702370
23712371
让我们的matplotlib来做这些图表的工作
23722372
@@ -2469,7 +2469,7 @@ sudo zypper install sqlite3
24692469

24702470
不过,用yast2也很不错,不是么。。
24712471

2472-
###数据导入
2472+
### 数据导入
24732473

24742474
需要注意的是这里是需要python2.7,起源于对gzip的上下文管理器的支持问题
24752475

@@ -2547,7 +2547,7 @@ date_re = re.compile(r"([0-9]{4})-([0-9]{2})-([0-9]{2})-([0-9]+)\.json.gz")
25472547

25482548
更好的方案?
25492549

2550-
###Redis
2550+
### Redis
25512551

25522552
查询用户事件总数
25532553

@@ -2596,7 +2596,7 @@ pipe.execute()
25962596

25972597
到这里我们算是知道了OSRC的数据库部分是如何工作的。
25982598

2599-
####Redis 查询
2599+
#### Redis 查询
26002600

26012601
主要代码如下所示
26022602

@@ -2639,7 +2639,7 @@ def get_vector(user, pipe=None):
26392639

26402640
osrc最有意思的一部分莫过于flann,当然说的也是系统后台的设计的一个很关键及有意思的部分。
26412641

2642-
##邻近算法与相似用户
2642+
## 邻近算法与相似用户
26432643

26442644
邻近算法是在这个分析过程中一个很有意思的东西。
26452645

@@ -3139,7 +3139,7 @@ GitHub连击
31393139

31403140
这个可以从两部分说起:
31413141

3142-
####重构Skill Tree
3142+
#### 重构 Skill Tree
31433143

31443144
原来的是
31453145

@@ -3152,7 +3152,7 @@ GitHub连击
31523152

31533153
代码: [https://github.com/phodal/skillock](https://github.com/phodal/skillock)
31543154

3155-
####技能树Sherlock
3155+
#### 技能树Sherlock
31563156

31573157
- D3.js
31583158
- Dagre-D3.js
@@ -3314,7 +3314,7 @@ GitHub连击
33143314

33153315
这也是下一个值得提高的地方。
33163316

3317-
###其他
3317+
### 其他
33183318

33193319
是时候写这个小结了。从不会写代码,到写代码是从01的过程,但是要从160都不是一件容易的事。无论是刷GitHub也好(不要是自动提交),或者是换工作也好,我们都在不断地练习。
33203320

0 commit comments

Comments
 (0)