mirror of
https://github.com/phodal/github
synced 2026-05-22 08:38:23 +00:00
release first version
This commit is contained in:
parent
c63e024b28
commit
ba671532fc
6 changed files with 117 additions and 27 deletions
BIN
github-roam.epub
BIN
github-roam.epub
Binary file not shown.
|
|
@ -403,9 +403,21 @@ C | 2
|
|||
|
||||
#创建你的项目
|
||||
|
||||
问题来了,我们在上面需要怎样的项目?
|
||||
问题来了,我们在上面需要怎样的项目? 在上章中,我们说到了下面的内容会比较受欢迎:
|
||||
|
||||
**只要是代码相关的,那应该就是可以的**
|
||||
- 库和框架: 和``jQuery``
|
||||
- 系统: 如``Linux``、``hhvm``、``docker``
|
||||
- 配置集: 如``dotfiles``
|
||||
- 辅助工具: 如``oh-my-zsh``
|
||||
- 工具: 如``Homewbrew``和``Bower``
|
||||
- 资料收集: 如``free programming books``,``You-Dont-Know-JS``,``Font-Awesome``
|
||||
- 其他:简历如``Resume``
|
||||
|
||||
不过,在多数情况下,我想文档类如资料收集会比较受欢迎。但是,并非所有喜欢的程序员都喜欢去收集这样的内容,有时候我们想创造的是一个流行的库,这也是我最想做的开源项目。
|
||||
|
||||
##Hello,World
|
||||
|
||||
So,你可以从Hello,World开始试试。
|
||||
|
||||
#创建Pull Request
|
||||
|
||||
|
|
@ -1000,7 +1012,7 @@ req.end();
|
|||
|
||||
pip install twill
|
||||
|
||||
##Twill 登陆测试
|
||||
###Twill 登陆测试
|
||||
|
||||
1.启动我们的应用。
|
||||
|
||||
|
|
@ -1047,7 +1059,7 @@ req.end();
|
|||
|
||||
发现重定向到首页了。
|
||||
|
||||
##Twill 测试脚本
|
||||
###Twill 测试脚本
|
||||
|
||||
当然我们也可以用脚本直接来测试``login.twill``:
|
||||
|
||||
|
|
|
|||
BIN
github-roam.mobi
Normal file
BIN
github-roam.mobi
Normal file
Binary file not shown.
BIN
github-roam.pdf
Normal file
BIN
github-roam.pdf
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
26
index.html
26
index.html
|
|
@ -93,7 +93,9 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
|
|||
</ul></li>
|
||||
</ul></li>
|
||||
<li><a href="#github流行项目分析">Github流行项目分析</a></li>
|
||||
<li><a href="#创建你的项目">创建你的项目</a></li>
|
||||
<li><a href="#创建你的项目">创建你的项目</a><ul>
|
||||
<li><a href="#helloworld">Hello,World</a></li>
|
||||
</ul></li>
|
||||
<li><a href="#创建pull-request">创建Pull Request</a><ul>
|
||||
<li><a href="#第一个pr">第一个PR</a></li>
|
||||
<li><a href="#cla">CLA</a></li>
|
||||
|
|
@ -122,9 +124,10 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
|
|||
<li><a href="#说说测试驱动开发">说说测试驱动开发</a></li>
|
||||
<li><a href="#思考">思考</a></li>
|
||||
</ul></li>
|
||||
<li><a href="#轻量级网站测试twill">轻量级网站测试TWill</a></li>
|
||||
<li><a href="#轻量级网站测试twill">轻量级网站测试TWill</a><ul>
|
||||
<li><a href="#twill-登陆测试">Twill 登陆测试</a></li>
|
||||
<li><a href="#twill-测试脚本">Twill 测试脚本</a></li>
|
||||
</ul></li>
|
||||
<li><a href="#fake-server">Fake Server</a></li>
|
||||
</ul></li>
|
||||
<li><a href="#重构-1">重构</a><ul>
|
||||
|
|
@ -586,8 +589,19 @@ git push -u origin master</code></pre>
|
|||
<li>其他:简历如<code>Resume</code></li>
|
||||
</ul>
|
||||
<h1 id="创建你的项目">创建你的项目</h1>
|
||||
<p>问题来了,我们在上面需要怎样的项目?</p>
|
||||
<p><strong>只要是代码相关的,那应该就是可以的</strong></p>
|
||||
<p>问题来了,我们在上面需要怎样的项目? 在上章中,我们说到了下面的内容会比较受欢迎:</p>
|
||||
<ul>
|
||||
<li>库和框架: 和<code>jQuery</code></li>
|
||||
<li>系统: 如<code>Linux</code>、<code>hhvm</code>、<code>docker</code></li>
|
||||
<li>配置集: 如<code>dotfiles</code></li>
|
||||
<li>辅助工具: 如<code>oh-my-zsh</code></li>
|
||||
<li>工具: 如<code>Homewbrew</code>和<code>Bower</code></li>
|
||||
<li>资料收集: 如<code>free programming books</code>,<code>You-Dont-Know-JS</code>,<code>Font-Awesome</code></li>
|
||||
<li>其他:简历如<code>Resume</code></li>
|
||||
</ul>
|
||||
<p>不过,在多数情况下,我想文档类如资料收集会比较受欢迎。但是,并非所有喜欢的程序员都喜欢去收集这样的内容,有时候我们想创造的是一个流行的库,这也是我最想做的开源项目。</p>
|
||||
<h2 id="helloworld">Hello,World</h2>
|
||||
<p>So,你可以从Hello,World开始试试。</p>
|
||||
<h1 id="创建pull-request">创建Pull Request</h1>
|
||||
<p>除了创建项目之外,我们也可以创建Pull Request来做贡献。</p>
|
||||
<h2 id="第一个pr">第一个PR</h2>
|
||||
|
|
@ -1127,7 +1141,7 @@ React.render(
|
|||
<p>看了一下源码,大概原理就是用<code>requests</code>下载html,接着用<code>lxml</code>解析html,比较有意思的是内嵌了一个<code>DSL</code>。</p>
|
||||
<p>这是一个Python的库。</p>
|
||||
<pre><code> pip install twill</code></pre>
|
||||
<h2 id="twill-登陆测试">Twill 登陆测试</h2>
|
||||
<h3 id="twill-登陆测试">Twill 登陆测试</h3>
|
||||
<p>1.启动我们的应用。</p>
|
||||
<p>2.进入twill shell</p>
|
||||
<pre><code>twill-sh
|
||||
|
|
@ -1159,7 +1173,7 @@ fv 1 password test</code></pre>
|
|||
Note: submit is using submit button: name="login", value="登入"
|
||||
current page: http://127.0.0.1:5000/</code></pre>
|
||||
<p>发现重定向到首页了。</p>
|
||||
<h2 id="twill-测试脚本">Twill 测试脚本</h2>
|
||||
<h3 id="twill-测试脚本">Twill 测试脚本</h3>
|
||||
<p>当然我们也可以用脚本直接来测试<code>login.twill</code>:</p>
|
||||
<pre><code>go http://127.0.0.1:5000/login
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue