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
alias v="vim" | |
alias rs="bundle exec rails server" | |
alias rsd="bundle exec rails server --debugger" | |
alias rsp="bundle exec rails server -e production" | |
alias rc="bundle exec rails console" | |
alias rd="bundle exec rails db" | |
alias r="bundle exec rake" | |
alias b="bundle" | |
alias be="bundle exec" | |
alias bs="bundle show" |
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
{ | |
"message": "amazon:order:poll", | |
"message_id": "some_id", | |
"payload": | |
{ | |
}, | |
"parameters":[ | |
{ "name": "marketplace_id", "value": 123}, | |
{ "name": "seller_id", "value": "1123"}, |
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
{ | |
"message": "spree:order:import", | |
"payload": { | |
"order": { | |
"email": "[email protected]", | |
"line_items": [ | |
{ | |
"price": 19.99, | |
"sku": "ABC-123", | |
"quantity": 1 |
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
Bundle 'gmarik/vundle' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'rking/ag.vim' | |
Bundle 'briancollins/vim-jst' | |
Bundle 'sjl/vitality.vim' | |
Bundle 'thoughtbot/vim-rspec' | |
Bundle 'kchmck/vim-coffee-script' | |
Bundle 'nanotech/jellybeans.vim' | |
Bundle 'scrooloose/nerdcommenter' |
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
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'rking/ag.vim' | |
Bundle 'briancollins/vim-jst' |
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
Bundle 'gmarik/vundle' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'rking/ag.vim' | |
Bundle 'briancollins/vim-jst' | |
Bundle 'sjl/vitality.vim' | |
Bundle 'thoughtbot/vim-rspec' | |
Bundle 'kchmck/vim-coffee-script' | |
Bundle 'nanotech/jellybeans.vim' | |
Bundle 'scrooloose/nerdcommenter' |
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
ActionView::Template::Error (undefined method `[]' for nil:NilClass): | |
1: json.message_id @message['message_id'] | |
2: json.locked do | |
3: json.number @locked_order['number'] | |
4: json.locked_at 'locked_at' | |
app/views/orders/lock/consume.json.jbuilder:1:in `_app_views_orders_lock_consume_json_jbuilder___3235425158690258864_28771100' | |
app/controllers/application_controller.rb:14:in `authorize' |
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
var resource; | |
resource = railsResourceFactory({ | |
url: '/api/registrations', | |
name: 'registration' | |
availableKeys: function(){ | |
return this.$get(this.$url() + '/available_keys'); | |
} | |
}); |
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
git clone [email protected]:BDQ/demo_endpoint.git | |
cd demo_endpoint | |
bundle install | |
bundle exec rackup -s thin -p 9000 |
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
=> Booting WEBrick | |
=> Rails 3.2.13 application starting in production on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2013-04-29 10:40:54] INFO WEBrick 1.3.1 | |
[2013-04-29 10:40:54] INFO ruby 1.9.3 (2012-11-10) [x86_64-darwin12.2.0] | |
[2013-04-29 10:40:54] INFO WEBrick::HTTPServer#start: pid=14908 port=3000 | |
Started GET "/" for 127.0.0.1 at 2013-04-29 10:45:54 +0100 | |
Processing by Spree::HomeController#index as HTML | |
Deface: 2 overrides found for 'spree/layouts/spree_application' |