This file contains 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 'amazon_product' | |
require 'json' | |
require 'CSV' | |
products = Hash.new | |
req = AmazonProduct["us"] | |
req.configure do |c| | |
# Get key/secret from Amazon, sign up for Product Advertising API |
This file contains 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 'rubygems' | |
require 'bundler/setup' | |
Bundler.require | |
require "capybara" | |
require "capybara/poltergeist" | |
Capybara.register_driver :webkit do |app| | |
Capybara::Webkit::Driver.new(app) | |
end |
This file contains 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 'rubygems' | |
require 'bundler/setup' | |
Bundler.require | |
require "capybara" | |
require "capybara/poltergeist" | |
Capybara.register_driver :webkit do |app| | |
Capybara::Webkit::Driver.new(app) | |
end |
This file contains 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
// RequireJS plugin that loads template files and converts them into | |
// Underscore-compiled template functions. Inspired by the tpl! plugin at | |
// https://github.com/abersager/requirejs-tpl. | |
// Usage: | |
// - Specify template files as a resource to load with the `tpl!` prefix e.g. | |
// `tpl!products/productView.html`. If the template has (non-nested) <script> | |
// or <template> tags, then each script tag will be independently parsed as a template, and | |
// the set of templates will be returned by the module in a hash, keyed by each | |
// script's `id` attribute. Otherwise, a single function will be returned by | |
// the module. This allows multiple small templates to be combined into a single |