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
require 'rubygems' | |
require 'httpi' # Use whatever http system you've already started using | |
require 'json' | |
require 'oj' | |
@foolio =10.times.map{ 20 + Random.rand(11) } | |
mandrill_events = <<EOD | |
[{\"event\":\"inbound\",\"ts\":1405360537,\"msg\":{\"raw_msg\":\"Received: #{ARGV[1]} (unknown [209.85.219.44])\\n\\tby ip-10-196-133-123 (Postfix) with ESMTPS id D5E14802B1\\n\\tfor <transaction@thunderd |
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
$( document ).ready(function() { | |
$("a#invoice").click(function(){ | |
breakdown = [ | |
{name: "Red #353", amount: 5.99, quantity: 2}, | |
{name: "Blue #533", amount: 4.99, quantity: 1}, | |
{name: "NM Sales Tax", amount: 0.55, quantity: 1} | |
] | |
billing = { |
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
console.log('atpay2'); | |
jQuery(document).ready(function($) { | |
//@Pay scripts | |
$(document).ready(function() { | |
atpay.config({ | |
organization_sid: "org_Fi66n7j5BaKX8WpdzezEPQ" | |
}); |
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
# A task to create a new supplier cost based on court zip code | |
namespace :nevada_supplier_costs do | |
desc "Create a new supplier cost based on provided zip codes" | |
task create: :environment do | |
PRODUCTS = { | |
zone_1_standard: Product.find(3372829), | |
zone_1_rush: Product.find(3372829), |
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
# A task to create a new supplier cost based on zip code | |
namespace :import_supplier_costs do | |
desc "Create a new supplier cost based on provided zip codes" | |
task create: :environment do | |
success_count = 0 |