Skip to content

Instantly share code, notes, and snippets.

Avatar

Bretton Auerbach auerbachb

View GitHub Profile
View yoshi_code_challenge.md

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.

@auerbachb
auerbachb / index.html
Created Jul 25, 2013 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
View index.html
<!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>
View lucky_ajax.md

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 / P5: OO Inheritance.rb
Last active Dec 19, 2015 — 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.
View P5: OO Inheritance.rb
#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
You can’t perform that action at this time.