Skip to content

Instantly share code, notes, and snippets.

View BDQ's full-sized avatar
💥

Brian Quinn BDQ

💥
View GitHub Profile
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"
@BDQ
BDQ / request.json
Last active December 18, 2015 15:49
amazon:orders:poll
{
"message": "amazon:order:poll",
"message_id": "some_id",
"payload":
{
},
"parameters":[
{ "name": "marketplace_id", "value": 123},
{ "name": "seller_id", "value": "1123"},
@BDQ
BDQ / import.json
Last active December 18, 2015 15:38
{
"message": "spree:order:import",
"payload": {
"order": {
"email": "test1@test.com",
"line_items": [
{
"price": 19.99,
"sku": "ABC-123",
"quantity": 1
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'
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'
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'
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'
@BDQ
BDQ / resource.js
Last active December 17, 2015 19:49 — forked from LBRapid/resource.js
var resource;
resource = railsResourceFactory({
url: '/api/registrations',
name: 'registration'
availableKeys: function(){
return this.$get(this.$url() + '/available_keys');
}
});
@BDQ
BDQ / gist:5583170
Last active December 17, 2015 08:49
SpreeConf: Spree Integrator Demo steps
git clone git@github.com:BDQ/demo_endpoint.git
cd demo_endpoint
bundle install
bundle exec rackup -s thin -p 9000
=> 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'