Skip to content

Instantly share code, notes, and snippets.

@philemonlloyds
philemonlloyds / 0_reuse_code.js
Last active August 29, 2015 14:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@philemonlloyds
philemonlloyds / Coding Your Code
Created May 27, 2015 13:47
Price quote for sign shop
def price_quote_for_sign(size,colors)
size_of_sign = size
number_of_colours = colors
total_cost_sign_before_tax = (15 * size) + (colors<=2?colors*10:colors*15)
calcutation_tax(total_cost_sign_before_tax)
end
def calcutation_tax(total_price_of_products)
tax_rate = 15
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = '[email protected]'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }