| 更新: | 2014-05-07 |
|---|---|
| バージョン: | 0.0.1 |
| 作者: | @voluntas |
| URL: | http://voluntas.github.io/ |
概要
| 更新: | 2014-05-07 |
|---|---|
| バージョン: | 0.0.1 |
| 作者: | @voluntas |
| URL: | http://voluntas.github.io/ |
概要
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "net/http" | |
| "net/url" | |
| "strings" | |
| ) |
| #coding:utf-8 | |
| import random | |
| def amida_shuffle(line_num, exchange_num): | |
| lines = range(line_num) | |
| for i in xrange(exchange_num): | |
| p = random.randrange(line_num - 1) | |
| lines[p], lines[p+1] = lines[p+1], lines[p] | |
| return lines |
| import re | |
| from saying.exceptions import ApplicationException | |
| from itertools import chain | |
| class DSLSyntaxError(ApplicationException): | |
| pass | |
| def format(handler, text, message): | |
| var = { | |
| u'sender': lambda: resolve_handle(message.Sender.Handle), |
| # -*- coding: utf-8 -*- | |
| import requests | |
| from pyquery import PyQuery as pq | |
| import parser | |
| import re | |
| import datastore | |
| url_re = re.compile(".*/(\d+)/.*", re.M) |
| Usage | |
| ====== | |
| .. wiki-table:: | |
| :header-rows: 1 | |
| :widths: 2 3 5 | |
| |id|header1|header2| | |
| |1|hello|world| | |
| |2|foo|:strong:`bar`| |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #coding:utf-8 | |
| import urllib | |
| import BeautifulSoup | |
| import urlparse | |
| import time | |
| def main(): | |
| urlList = open("seed.txt","r").read().splitlines() | |
| allowDomainList = set(open("allowDomain.txt","r").read().splitlines()) |