Skip to content

Instantly share code, notes, and snippets.

View BDQ's full-sized avatar
💥

Brian Quinn BDQ

💥
View GitHub Profile
@BDQ
BDQ / import.json
Last active December 19, 2015 12:39 — forked from schof/import.json
{
"message": "order:new",
"payload": {
"order": {
"channel": "Amazon",
"email": "test1@test.com",
"currency": "USD",
"line_items": [
{
"price": 19.99,
@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');
}
});
<%= radio_button_tag 'option', 'blue', true %> Blue
<%= radio_button_tag 'option', 'green' %> Green
<%= radio_button_tag 'option', 'yellow' %> Yellow
<%= radio_button_tag 'option', 'brown' %> Brown
<%= radio_button_tag 'option', 'black' %> Black
@BDQ
BDQ / bogo.rb
Created February 10, 2012 16:59 — forked from anonymous/bogo.rb
module Spree
class Calculator::Bogo < Calculator
preference :number_to_buy, :integer, :default => 1
preference :number_to_get, :integer, :default => 1
def self.description
"Buy One Get One"
end
def compute(order)
describe "States" do
before(:each) do
visit admin_path
click_link "Configuration"
end
context "admin visiting states listing" do
it "should correctly display the states" do
Factory(:state, :name => "Maryland", :abbr => "MD", :country => Factory(:country))