Skip to content

Instantly share code, notes, and snippets.


Tom Carchrae carchrae

Block or report user

Report or block carchrae

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Coding Challenge - The Cheapest Stopover

You're a jetsetting high flyer who is nearly always on the move. You often end up sleeping in airports due to poor flight connections. Your task is to build an application to find the cheapest hotel near an airport on a particular date. This will allow you to spend more time in a comfy bed and less time on the airport floor!

Specific Goal

Build a simple server that, given an airport code (eg, YVR) and a date, will return the three cheapest hotel rooms. (in case one is booked up or doesn't like the look of you). Make sure your output only contains the required information, the name of the hotel, address, phone number, and the rate for a room.

Please provide instructions on how to build and execute your project.

carchrae /
Last active May 18, 2018
sending with bitcoind like things
set -v
# description on how this works
# requires the tool `bc` to be installed, and obviously, the coin cli
# path to the command you are using
carchrae / LPToken.sol
Last active Sep 23, 2017 — forked from anonymous/LPToken.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View LPToken.sol
pragma solidity ^0.4.11;
import 'zeppelin-solidity/contracts/token/MintableToken.sol';
contract LPToken is MintableToken {
string public name = "Frontier LP Token";
string public symbol = "FPLP";
uint256 public decimals = 18;
carchrae / index.html
Last active May 23, 2017
map locator
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Carto Map</title>
<link rel="stylesheet" href=""/>
<script src=""></script>
html, body, #map {
View checkout.css
resetting main.scss stuff
input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="color"], textarea {
height: auto;
background-color: #ffffff;
View Gemfile.lock
remote: git://
revision: b554f307e5aa887110a70d54f8967c284f881375
branch: 3-0-stable
spree_auth_devise (3.0.0)
devise (~> 3.4.1)
devise-encryptable (= 0.1.2)

README is empty

View scope-and-require.js
//no vars on this stuff - lets me customize the window/document objects
document = jsdom();
window = document.createWindow();
window.hasBigEars = true;
//this is/was client side js that expects certain window properties to be there - eg, hasBigEars
var app = require('./js-that-loves-big-ears.js');
public static native void log(String text) /*-{
if ($wnd.console && $wnd.console.log) {
You can’t perform that action at this time.