Skip to content

Instantly share code, notes, and snippets.

@auerbachb
auerbachb / P5: OO Inheritance.rb
Last active December 19, 2015 07:29 — forked from dbc-challenges/P5: OO Inheritance.rb
Only an early draft, was reading some related info during most of the 45 minutes that I started this in.
#OO_Inheritance.rb
# ALL OF MY TESTS ON THE ORIGINAL CODE ARE BELOW,
<<-ORIGINAL_CLASSES
class Car
attr_reader :color, :wheels, :status
def initialize(args)
@color = args[:color]
@wheels = 4

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
@auerbachb
auerbachb / index.html
Created July 25, 2013 11:33 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
@auerbachb
auerbachb / yoshi_code_challenge.md
Last active December 7, 2017 23:32
Yoshi Code Challenge

Yoshi Code Challenge

Challenge

Build a Rails API with one endpoint that accepts a request with a latitude and longitude.

GET localhost:3000/nearest_gas?lat=37.77801&lng=-122.4119076

The response contains address information associated with the geocoordinates as well as the nearest gas station.