Giter Site home page Giter Site logo

interview's Introduction

Interview pairing exercise

This exercise is, first and foremost, something fun to work on. It's designed to give you a taste of what it's like to work at Airspace and for us to get a sense of how you program. There are 3 tasks to work through. Please walk us through your development process / thoughts while coding and ask questions if you have any. Lastly, don't be afraid to show off your Google skills. Those impress us too.

Get started

Assuming you have a working Ruby environment, from the repo root do:

  1. bundle install
  2. rackup -p 4567
  3. Browse to http://localhost:4567
  4. Run tests with rspec spec

Upon success you'll have a working Sinatra application to play with.

Task #1: Reverse geocode and display addresses

Given the following coordinates:

   Latitude   Longitude
  ----------------------
  61.582195, -149.443512
  44.775211, -68.774184
  25.891297, -97.393349
  45.787839, -108.502110
  35.109937, -89.959983

render a web page that displays the addresses of each. Use the Geocoder gem to get the addresses.

Task #2: Improve display

Use Bootstrap to make the page from task #1 look better.

Task #3: Calculate and display distance

Calculate the distance between each of the above coordinates and The White House, which is located at 1600 Pennsylvania Avenue NW Washington, D.C. 20500. Update the web page from task #2 to list each address and its determined distance in ascending order.

interview's People

Contributors

cstump avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.