Skip to content

Instantly share code, notes, and snippets.

@jamesdaniels
jamesdaniels / Questions
Created July 13, 2011 15:42
Magma Rails Give-away
Day Job: Rails developer (freelance) and serial startup-cofounder
Open Source contribution (if any): a bundle, mostly focusing around Rails/OAuth/E-commerce
Tell me about your experience with Ruby/Rails: an intense love affair since 2004ish, only made rocky due to my running around with javascript
How do you use GitHub: with gusto?
Favorite luchador(es): strong bad
@jamesdaniels
jamesdaniels / private.rb
Created June 27, 2011 15:24 — forked from joefiorini/private.rb
Indent methods under private?
class Blah
private
def method1
end
def method2
end
require 'uri'
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
Given(/^a service implementation "([^\"]*)" exists with attributes "([^\"]*)" and first display variable named "([^\"]*)" and second display variable named "([^\"]*)"$/) do |class_name, attributes_string, first_display_var, second_display_var|
begin
klass = Object.const_get(class_name)
rescue NameError
klass = Object.const_set(class_name, Class.new(ServiceImplementation))
aux_variables = attributes_string.split(',').map { |x| x.strip.to_s }

GitHub OAuth Busy Developer's Guide

This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.

OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.

Web Application Flow

  • Redirect to this link to request GitHub access: