This file contains hidden or 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
facebook.authorize(this, new String[] {}, new DialogListener() { | |
@Override | |
public void onComplete(Bundle values) { | |
Intent gamelist = new Intent(LoginActivity.this, GameListActivity.class); | |
startActivity(gamelist); | |
} | |
@Override | |
public void onFacebookError(FacebookError error) { | |
vars.createToast(error.toString()); |
This file contains hidden or 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
Mongoid::Errors::Validations: | |
Problem: | |
Validation of BankAccount failed. | |
Summary: | |
The following errors were found: Invalid bank account info | |
Resolution: | |
Try persisting the document with valid data or remove the validations. | |
factory :bank_account do |
This file contains hidden or 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
#<Balanced::BadRequest: Balanced::BadRequest(400)::Bad Request:: POST https://api.balancedpayments.com/v1/marketplaces/TEST-MP6aJq2Ek0SzIDikxB8MBb9S/cards: request: Missing required field [card_number] Your request id is OHM52a89d6af55011e2b277026ba7cd33d0. > | |
#<Balanced::Conflict: Balanced::Conflict(409)::Conflict:: PUT https://api.balancedpayments.com/v1/customers/CU2al0yCi4YejZleHFvurDf2: uri-not-understood: The field [bank_account_uri] was not a Balanced URI - "There was an error creating a bank account". Your request id is OHM53c92acaf55011e2b8f6026ba7cac9da. > |
This file contains hidden or 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
#<Balanced::Conflict: Balanced::Conflict(409)::Conflict:: PUT https://api.balancedpayments.com/v1/customers/CU2vIN9YARoxt8CRzIiOWk1a: bank-account-already-associated: Bank account has already been associated with an account. Your request id is OHM5b399686f55111e2989b026ba7cd33d0. > |
This file contains hidden or 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
" Syntax Info {{{ | |
function! GetSynInfo() | |
let stack = synstack(line("."), col(".")) | |
let info = "" | |
for synid in reverse(stack) | |
if strlen(info) | |
let info .= " < " | |
endif |
This file contains hidden or 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
NERDTreeTabs WinLeave | |
* call <SID>WinLeaveHandler() | |
airline WinLeave | |
* call airline#update_statusline(0) |
This file contains hidden or 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
shape = [1, 0, 3, 4, 5, 3, 2, 4, 6, 8] | |
puddles = [0] | |
current_puddle = 0 | |
left = nil | |
right = nil | |
has_right_wall = false | |
shape.each do |height| | |
left = height if not left |
This file contains hidden or 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
class Schedule | |
include Mongoid::Document | |
include Mongoid::MultiParameterAttributes # Needed for DateTime | |
include Mongoid::Search | |
include Mongoid::Timestamps | |
include Geocoder::Model::Mongoid | |
before_create :geocode # only once, when created | |
field :coordinates, type: Array |
This file contains hidden or 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
require 'json' | |
require 'gchart' | |
def axis | |
#(0..6).to_a.map { |day| (0..23).to_a.map { |hour| "#{hour}-#{day}" } }.flatten | |
(0..0).to_a.map { |day| (0..23).to_a.map { |hour| "#{hour}-#{day}" } }.flatten | |
end | |
data = Hash[axis.map {|a| [a, 0]}] |
This file contains hidden or 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
ActiveAdmin.register User do | |
permit_params :email, :password, :password_confirmation, :name, :about, :location, :contract_length, :company_id, :fun_fact, :commitment_ids, :signed_in_at, :paypal_credit_card_id, :imported_from_linkedin_at, skills_attributes: [:id, :skill_level, :years_of_experience, :details, :specialty_id], accomplishments_attributes: [:id, :content], links_attributes: [:id, :meta, :url], education_attributes: [:id, :school, :degree, :year] | |
index do | |
selectable_column | |
id_column | |
column :email | |
column :password_digest | |
column :name | |
column :about |