Skip to content

Instantly share code, notes, and snippets.

View Gregcake's full-sized avatar
💭
Hacking into the mainframe

Greg Tan Gregcake

💭
Hacking into the mainframe
  • TradeGecko
  • Singapore
View GitHub Profile
{:geckoship_zone=>{:name=>"US - Zone 2", :enabled=>true, :countries=>[{:name=>"United States", :code=>"US", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"Minnesota", :code=>"MN", :country_id=>nil, :id=>nil}]}], :price_based_rates=>[], :weight_based_rates=>[{:min_weight=>"0.1", :max_weight=>"1", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"7.85", :zone_id=>nil}, {:min_weight=>"1.1", :max_weight=>"2", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"8.65", :zone_id=>nil}, {:min_weight=>"2.1", :max_weight=>"3", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"8.87", :zone_id=>nil}, {:min_weight=>"3.1", :max_weight=>"4", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"9.13", :zone_id=>nil}, {:min_weight=>"4.1", :max_weight=>"5", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"9.37", :zone_id=>nil}, {:min_weight=>"5.1", :max_weight=>"6", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"9.68", :zone_id=>nil}, {:min_weight=>"6.1", :max_weight=>"7", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"10.23
{:geckoship_zone=>{:name=>"US - Zone 3", :enabled=>true, :countries=>[{:name=>"United States", :code=>"US", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"Wisconsin", :code=>"WI", :country_id=>nil, :id=>nil}, {:name=>"Iowa", :code=>"IA", :country_id=>nil, :id=>nil}]}], :price_based_rates=>[], :weight_based_rates=>[{:min_weight=>"0.1", :max_weight=>"1", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"8.65", :zone_id=>nil}, {:min_weight=>"1.1", :max_weight=>"2", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"9.48", :zone_id=>nil}, {:min_weight=>"2.1", :max_weight=>"3", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"9.89", :zone_id=>nil}, {:min_weight=>"3.1", :max_weight=>"4", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"10.05", :zone_id=>nil}, {:min_weight=>"4.1", :max_weight=>"5", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"10.41", :zone_id=>nil}, {:min_weight=>"5.1", :max_weight=>"6", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"10.69", :zone_id=>nil}, {:min_weight=>"6.1", :max_weight=
{:geckoship_zone=>{:name=>"US - Zone 4", :enabled=>true, :countries=>[{:name=>"United States", :code=>"US", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"Illinois", :code=>"IL", :country_id=>nil, :id=>nil}, {:name=>"Indiana", :code=>"IN", :country_id=>nil, :id=>nil}, {:name=>"Kansas", :code=>"KS", :country_id=>nil, :id=>nil}, {:name=>"Michigan", :code=>"MI", :country_id=>nil, :id=>nil}, {:name=>"Missouri", :code=>"MO", :country_id=>nil, :id=>nil}, {:name=>"North Dakota", :code=>"ND", :country_id=>nil, :id=>nil}, {:name=>"Nebraska", :code=>"NE", :country_id=>nil, :id=>nil}, {:name=>"South Dakota", :code=>"SD", :country_id=>nil, :id=>nil}]}], :price_based_rates=>[], :weight_based_rates=>[{:min_weight=>"0.1", :max_weight=>"1", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"8.96", :zone_id=>nil}, {:min_weight=>"1.1", :max_weight=>"2", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"10.15", :zone_id=>nil}, {:min_weight=>"2.1", :max_weight=>"3", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"10.7", :zone_i
{:geckoship_zone=>{:name=>"US - Zone 5", :enabled=>true, :countries=>[{:name=>"United States", :code=>"US", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"Alabama", :code=>"AL", :country_id=>nil, :id=>nil}, {:name=>"Arkansas", :code=>"AR", :country_id=>nil, :id=>nil}, {:name=>"Colorado", :code=>"CO", :country_id=>nil, :id=>nil}, {:name=>"Delaware", :code=>"DE", :country_id=>nil, :id=>nil}, {:name=>"Georgia", :code=>"GA", :country_id=>nil, :id=>nil}, {:name=>"Kentucky", :code=>"KY", :country_id=>nil, :id=>nil}, {:name=>"Louisiana", :code=>"LA", :country_id=>nil, :id=>nil}, {:name=>"Maryland", :code=>"MD", :country_id=>nil, :id=>nil}, {:name=>"Mississippi", :code=>"MS", :country_id=>nil, :id=>nil}, {:name=>"Montana", :code=>"MT", :country_id=>nil, :id=>nil}, {:name=>"North Carolina", :code=>"NC", :country_id=>nil, :id=>nil}, {:name=>"New Jersey", :code=>"NJ", :country_id=>nil, :id=>nil}, {:name=>"New Mexico", :code=>"NM", :country_id=>nil, :id=>nil}, {:name=>"New York", :code=>"NY", :country_id=>nil, :id=>nil},
{:geckoship_zone=>{:name=>"US - Zone 6", :enabled=>true, :countries=>[{:name=>"United States", :code=>"US", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"Arizona", :code=>"AZ", :country_id=>nil, :id=>nil}, {:name=>"Connecticut", :code=>"CT", :country_id=>nil, :id=>nil}, {:name=>"District of Columbia", :code=>"DC", :country_id=>nil, :id=>nil}, {:name=>"Florida", :code=>"FL", :country_id=>nil, :id=>nil}, {:name=>"Idaho", :code=>"ID", :country_id=>nil, :id=>nil}, {:name=>"Massachusetts", :code=>"MA", :country_id=>nil, :id=>nil}, {:name=>"Maine", :code=>"ME", :country_id=>nil, :id=>nil}, {:name=>"New Hampshire", :code=>"NH", :country_id=>nil, :id=>nil}, {:name=>"Nevada", :code=>"NV", :country_id=>nil, :id=>nil}, {:name=>"Rhode Island", :code=>"RI", :country_id=>nil, :id=>nil}, {:name=>"Vermont", :code=>"VT", :country_id=>nil, :id=>nil}, {:name=>"Washington", :code=>"WA", :country_id=>nil, :id=>nil}]}], :price_based_rates=>[], :weight_based_rates=>[{:min_weight=>"0.1", :max_weight=>"1", :weight_unit=>"lb", :name=
{:geckoship_zone=>{:name=>"US - Zone 7", :enabled=>true, :countries=>[{:name=>"United States", :code=>"US", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"California", :code=>"CA", :country_id=>nil, :id=>nil}, {:name=>"Oregon", :code=>"OR", :country_id=>nil, :id=>nil}]}], :price_based_rates=>[], :weight_based_rates=>[{:min_weight=>"0.1", :max_weight=>"1", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"9.8", :zone_id=>nil}, {:min_weight=>"1.1", :max_weight=>"2", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"11.24", :zone_id=>nil}, {:min_weight=>"2.1", :max_weight=>"3", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"11.98", :zone_id=>nil}, {:min_weight=>"3.1", :max_weight=>"4", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"12.87", :zone_id=>nil}, {:min_weight=>"4.1", :max_weight=>"5", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"13.46", :zone_id=>nil}, {:min_weight=>"5.1", :max_weight=>"6", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"13.81", :zone_id=>nil}, {:min_weight=>"6.1", :max_wei
{:geckoship_zone=>{:name=>"US - Zone 46", :enabled=>true, :countries=>[{:name=>"United States", :code=>"US", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"Alaska", :code=>"AK", :country_id=>nil, :id=>nil}, {:name=>"Hawaii", :code=>"HI", :country_id=>nil, :id=>nil}]}], :price_based_rates=>[], :weight_based_rates=>[{:min_weight=>"0.1", :max_weight=>"1", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"39.84", :zone_id=>nil}, {:min_weight=>"1.1", :max_weight=>"2", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"43.23", :zone_id=>nil}, {:min_weight=>"2.1", :max_weight=>"3", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"46.04", :zone_id=>nil}, {:min_weight=>"3.1", :max_weight=>"4", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"49.93", :zone_id=>nil}, {:min_weight=>"4.1", :max_weight=>"5", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"53.12", :zone_id=>nil}, {:min_weight=>"5.1", :max_weight=>"6", :weight_unit=>"lb", :name=>"UPS Ground", :price=>"55.16", :zone_id=>nil}, {:min_weight=>"6.1", :max_weig
{:geckoship_zone=>{:name=>"CA - Zone 51", :enabled=>true, :countries=>[{:name=>"Canada", :code=>"CA", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"Manitoba", :code=>"MB", :country_id=>nil, :id=>nil}, {:name=>"Ontario", :code=>"ON", :country_id=>nil, :id=>nil}]}], :price_based_rates=>[], :weight_based_rates=>[{:min_weight=>"0.1", :max_weight=>"1", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"20.98", :zone_id=>nil}, {:min_weight=>"1.1", :max_weight=>"2", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"22.69", :zone_id=>nil}, {:min_weight=>"2.1", :max_weight=>"3", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"23.4", :zone_id=>nil}, {:min_weight=>"3.1", :max_weight=>"4", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"25.06", :zone_id=>nil}, {:min_weight=>"4.1", :max_weight=>"5", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"26.58", :zone_id=>nil}, {:min_weight=>"5.1", :max_weight=>"6", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"27.93", :zone_id=>nil}, {:min_weight=>"6.1", :m
{:geckoship_zone=>{:name=>"CA - Zone 52", :enabled=>true, :countries=>[{:name=>"Canada", :code=>"CA", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"Saskatchewan", :code=>"SK", :country_id=>nil, :id=>nil}, {:name=>"Quebec", :code=>"QC", :country_id=>nil, :id=>nil}]}], :price_based_rates=>[], :weight_based_rates=>[{:min_weight=>"0.1", :max_weight=>"1", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"21.3", :zone_id=>nil}, {:min_weight=>"1.1", :max_weight=>"2", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"23.03", :zone_id=>nil}, {:min_weight=>"2.1", :max_weight=>"3", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"23.75", :zone_id=>nil}, {:min_weight=>"3.1", :max_weight=>"4", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"25.44", :zone_id=>nil}, {:min_weight=>"4.1", :max_weight=>"5", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"26.98", :zone_id=>nil}, {:min_weight=>"5.1", :max_weight=>"6", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"28.35", :zone_id=>nil}, {:min_weight=>"6.1",
{:geckoship_zone=>{:name=>"CA - Zone 53", :enabled=>true, :countries=>[{:name=>"Canada", :code=>"CA", :zone_id=>nil, :id=>nil, :provinces=>[{:name=>"Alberta", :code=>"AB", :country_id=>nil, :id=>nil}, {:name=>"British Columbia", :code=>"BC", :country_id=>nil, :id=>nil}, {:name=>"New Brunswick", :code=>"NB", :country_id=>nil, :id=>nil}, {:name=>"Prince Edward Island", :code=>"PE", :country_id=>nil, :id=>nil}, {:name=>"Nova Scotia", :code=>"NS", :country_id=>nil, :id=>nil}, {:name=>"Newfoundland and Labrador", :code=>"NL", :country_id=>nil, :id=>nil}]}], :price_based_rates=>[], :weight_based_rates=>[{:min_weight=>"0.1", :max_weight=>"1", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"21.57", :zone_id=>nil}, {:min_weight=>"1.1", :max_weight=>"2", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"23.33", :zone_id=>nil}, {:min_weight=>"2.1", :max_weight=>"3", :weight_unit=>"lb", :name=>"UPS Standard", :price=>"24.13", :zone_id=>nil}, {:min_weight=>"3.1", :max_weight=>"4", :weight_unit=>"lb", :name=>"UPS Sta