Skip to content

Instantly share code, notes, and snippets.

🌄
again

Tom Carchrae carchrae

🌄
again
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
View coding-challenge.md

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
carchrae / send.sh
Last active May 18, 2018
sending with bitcoind like things
View send.sh
#!/bin/bash
set -v
# description on how this works
# requires the tool `bc` to be installed, and obviously, the coin cli
#
# https://stackoverflow.com/questions/38493893/heres-how-to-send-raw-transaction-btc-using-bitcoin-cli-command
# path to the command you are using
CLI="./bitcoin-cli"
@carchrae
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 https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.15+commit.bbb8e64f.js&optimize=true&gist=
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
carchrae / index.html
Last active May 23, 2017
map locator
View index.html
<!DOCTYPE html>
<html>
<head>
<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="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css"/>
<script src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/cartodb.js"></script>
<style>
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;
}
/*
input[type="text"],
View Gemfile.lock
GIT
remote: git://github.com/spree/spree_auth_devise.git
revision: b554f307e5aa887110a70d54f8967c284f881375
branch: 3-0-stable
specs:
spree_auth_devise (3.0.0)
devise (~> 3.4.1)
devise-encryptable (= 0.1.2)
json
multi_json
View README.md

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');
View Log.java
public static native void log(String text) /*-{
if ($wnd.console && $wnd.console.log) {
$wnd.console.log(text);
}
}-*/;
You can’t perform that action at this time.