顯示具有 Github 標籤的文章。 顯示所有文章
顯示具有 Github 標籤的文章。 顯示所有文章

2015年3月26日 星期四

download subdirectory from GitHub

            https://github.com/Username/Repository/tree/master/subdirectory
                                                    |
                                                    v
svn checkout https://github.com/Username/Repository/trunk/subdirectory




References :
Cloning only a subdirectory with git - Stack Overflow

2014年8月30日 星期六

使用 GitHub OpenID 登入網站

1. 建立一個新的 application,可得到 Client ID、Client Secret
https://github.com/settings/applications

2. 在 Authorization callback URL 填入授權成功後要返回的網址


github = OAuth2Service(name='github',
                         authorize_url='https://github.com/login/oauth/authorize',
                         access_token_url='https://github.com/login/oauth/access_token',
                         client_id=CLIENT_ID,
                         client_secret=CLIENT_SECRET,
                         base_url='https://api.github.com/',
                         )