Skip to content

Instantly share code, notes, and snippets.

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
$( 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 = {
@isaiahbaca
isaiahbaca / fftp.js
Last active December 30, 2016 09:08
console.log('atpay2');
jQuery(document).ready(function($) {
//@Pay scripts
$(document).ready(function() {
atpay.config({
organization_sid: "org_Fi66n7j5BaKX8WpdzezEPQ"
});
# 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),
@isaiahbaca
isaiahbaca / zipzone_import.rb
Last active October 2, 2023 16:15
Supplier Costs / ZIP ZONE Import
# 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