Skip to content

Instantly share code, notes, and snippets.

@tubbo
Created May 5, 2010 13:16
Show Gist options
  • Select an option

  • Save tubbo/390748 to your computer and use it in GitHub Desktop.

Select an option

Save tubbo/390748 to your computer and use it in GitHub Desktop.
# This will be the GitHub interface for tracking my programming projects and recent
# GitHub activity.
#
# GET /code
# GET /code.atom
def code
@title = 'dev dev revolution'
@user = GitHub::User.find('tubbo') # get my profile information
# if we're authenticated properly, get repos and activity
authenticated_with :login => Settings.com.github.login, :token => Settings.com.github.token do
@repos = @user.repositories
#@timeline = @user.repositories.commits
respond_to do |format|
format.html # code.html.erb
format.atom redirect_to 'http://github.com/tubbo.atom'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment