#!/usr/bin/env nodejs
//前序任务 jalan_init_task
//后续任务 jalan_info
//提取list页面中住宿url,生成页面爬取任务
//Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| # 有关 Fiber 的解释: (按照数据流的方向分为两部分) | |
| # 在 `主线程' 中使用 resume 方法来启动(或继续执行)一个 `纤程'. | |
| # 1. 第一次调用 fiber.resume, 会启动一个纤程, | |
| # 如果 resume 调用时提供了实参, 会作为代码块形参传入代码块. | |
| # 2. 如果非第一次调用 fiber.resume, 即, `恢复' 一个纤程, 会做两件事: | |
| # - 从上次离开纤程的那个位置(调用 Fiber.yield 离开纤程的那个位置), 恢复纤程的执行. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sudo ln -s ~/nginx.conf unicorn.conf | |
| upstream app_server { | |
| server unix:/tmp/unicorn_padrino.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| charset utf-8; | |
| server_name db.innshine.com; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pull | |
| git checkout | |
| git status | |
| git remote -v | |
| git pull mk master | |
| git status | |
| clone | |
| git clone git://github.com/ayumin/ruby.git |