This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
| // console.lol by @RonnyOrbach, idea by Erez Avny | |
| if (typeof console != 'undefined') console.lol = function(){ | |
| var args = [].slice.call(arguments, 0); | |
| args.unshift("LOL"); | |
| args.push("LOLOLOL!") | |
| console.log.apply(console, args); | |
| }; |
| function spreadsheetToPDF(key) { | |
| var oauthConfig = UrlFetchApp.addOAuthService("spreadsheets"); | |
| var scope = "https://spreadsheets.google.com/feeds" | |
| oauthConfig.setConsumerKey("anonymous"); | |
| oauthConfig.setConsumerSecret("anonymous"); | |
| oauthConfig.setRequestTokenUrl("https://www.google.com/accounts/OAuthGetRequestToken?scope="+scope); | |
| oauthConfig.setAuthorizationUrl("https://accounts.google.com/OAuthAuthorizeToken"); | |
| oauthConfig.setAccessTokenUrl("https://www.google.com/accounts/OAuthGetAccessToken"); |
| /** | |
| reference - | |
| https://developers.google.com/accounts/docs/OAuth2WebServer | |
| https://code.google.com/apis/console/ | |
| https://developers.google.com/+/api/latest/ | |
| **/ | |
| ////handle all requests here | |
| function doGet(e) { |