This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
dev_id: 00000000000000000 | |
app_id: 00000000000000000 | |
cert_id: 0000000000000000 | |
uri: https://api.sandbox.ebay.com/ws/api.dll | |
auth_token: 00000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hash[*([:field1, :field2].zip(l.strip.split(/\t/)).flatten)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post 'magic_wand/:id' => 'controller#action', :constraints => { :email => /.*/ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'koala' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'twitter_oauth', :git => 'git://github.com/moomerman/twitter_oauth.git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncommit. Set the head of the branch to 1-head and stage the changes. | |
git reset --soft HEAD^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def facebook | |
if(params[:code]) | |
token = HTTParty.get('https://graph.facebook.com/oauth/access_token', :query => {'client_id' => AuthlogicConnect.config[:connect][:facebook][:key], 'redirect_uri' => facebook_url, 'client_secret' => AuthlogicConnect.config[:connect][:facebook][:secret], 'code' => params[:code]}).body.gsub(/\Aaccess_token=/, '') | |
return render :text => {:token => token }.inspect | |
end | |
# Bounce the user to the Facebook, this gets hit on the first entrance to the url | |
params.merge!({:oauth_provider => 'facebook', :authentication_type => 'session'}) | |
@user_session = UserSession.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Module | |
class Klass | |
class << self | |
def find_with_vcr(*args) | |
VCR.use_cassette('klass', :record => :new_episodes) do | |
find_without_vcr(*args) | |
end | |
end | |
alias_method_chain :find, :vcr | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include ActiveModel::Conversion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try this if need to again: | |
assert_select option[selected='selected'], /9pm/ |
OlderNewer