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
2016-06-08 10:28:07 Debug: Httpful\Response Object | |
( | |
[body] => stdClass Object | |
( | |
[code] => forbidden | |
[message] => permission denied | |
) | |
[raw_body] => {"code":"forbidden","message":"permission denied"} | |
[headers] => Httpful\Response\Headers Object |
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
/heres a simple div with an id | |
#my-div This is my cool div | |
results: <div id="my-div">This is my cool div</div> | |
/heres a simple div with a class | |
.my-div This is my cool div |
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
# Original line | |
%img.popup-menu-shadow-leftcap{:src=>"../assets/popup-menu-shadow-leftcap.gif", :alt=>''} | |
# Try this instead | |
= image_tag 'popup-menu-shadow-leftcap.gif', class: 'popup-menu-shadow-leftcap', alt: '' |
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
Cleaning up... | |
Removing temporary dir /home/brandon/Code/rhombik-env/build... | |
Exception: | |
Traceback (most recent call last): | |
File "/home/brandon/Code/rhombik-env/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main | |
status = self.run(options, args) | |
File "/home/brandon/Code/rhombik-env/local/lib/python2.7/site-packages/pip/commands/install.py", line 302, in run | |
requirement_set.cleanup_files(bundle=self.bundle) | |
File "/home/brandon/Code/rhombik-env/local/lib/python2.7/site-packages/pip/req.py", line 1333, in cleanup_files | |
rmtree(dir) |
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
# Routes | |
Prefix Verb URI Pattern Controller#Action | |
sidekiq_web /sidekiq Sidekiq::Web | |
root GET / high_voltage/pages#show {:id=>"home"} | |
user_bank_accounts GET /users/:user_id/bank_accounts(.:format) bank_accounts#index | |
POST /users/:user_id/bank_accounts(.:format) bank_accounts#create | |
new_user_bank_account GET /users/:user_id/bank_accounts/new(.:format) bank_accounts#new | |
edit_user_bank_account GET /users/:user_id/bank_accounts/:id/edit(.:format) bank_accounts#edit | |
user_bank_account GET /users/:user_id/bank_accounts/:id(.:format) bank_accounts#show | |
PATCH /users/:user_id/bank_accounts/:id(.:format) bank_accounts#update |
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
[1, 2, 3, 4].slice(3) #=> 4 | |
[1, 2, 3, 4].slice(4) #=> nil | |
[1, 2, 3, 4].slice(5) #=> nil | |
[1, 2, 3, 4].slice(4, 1) #=> [] | |
[1, 2, 3, 4].slice(5, 1) #=> nil |
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
# Model | |
class Job | |
include MongoMapper::Document | |
key :title, String | |
key :description, String | |
end | |
# Controller |
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
# app/models/credit_card.rb | |
class CreditCard < ActiveRecord::Base | |
belongs_to :user | |
... | |
def make_default! | |
old = self.users.credit_cards.where(default: true).first |
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
# Buyer's credit card was created in JS using OUR publishable key (as the docs say this is ok if you're sharing customers)... I think | |
@item = Item.find(1) | |
#<Item id: 1, user_id: 1, category_id: 1, status: "buy_it_now", name: "Time Traveling DeLoreanzz", description: "Lorem ipsum dolor sit amet, consectetuer adipiscing...", content: "Lorem ipsum dolor sit amet, consectetuer adipiscing...", price: #<BigDecimal:7f88b5f80a08,'0.15E6',9(18)>, reserve: #<BigDecimal:7f88b5f80990,'0.149E6',9(18)>, shipping: nil, is_shippable: false, is_featured: false, created_at: "2013-08-30 14:41:55", updated_at: "2013-10-09 15:22:57", auction_id: 1, buy_it_now_price: #<BigDecimal:7f88b5f80828,'0.15E6',9(18)>, accepted_credit_amount: 0, slug: "time-traveling-deloreanzz", deleted_at: nil, buyer_responsible_for_shipping: false, payment_status: "paid"> | |
@seller = User.find(1) | |
#<User id: 1, email: "[email protected]", encrypted_password: "$2a$10$2knLYeWdDmkJA4l.UOa2nO4qYt3gfQ89ekibN/fGk/Xy...", reset_password_token: nil, reset_passwor |
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
#<OmniAuth::AuthHash credentials=#<OmniAuth::AuthHash expires=false token="sk_test_1CaKdG1dAXb8KslcL31SCiXw"> extra=#<OmniAuth::AuthHash raw_info=#<OmniAuth::AuthHash livemode=false scope="read_write" stripe_publishable_key="pk_test_8xjqOYJzb8aXps69xLgRig6i" stripe_user_id="acct_2E8oqiveAsKlfRBdumEj" token_type="bearer">> info=#<OmniAuth::AuthHash::InfoHash livemode=false scope="read_write" stripe_publishable_key="pk_test_8xjqOYJzb8aXps69xLgRig6i"> provider="stripe_connect" uid="acct_2E8oqiveAsKlfRBdumEj"> |