Skip to content

Instantly share code, notes, and snippets.

At harbour

John Barton joho

At harbour
View GitHub Profile
View a_thing.js
toggleSideBar: function(e) {
console.log("poo bum");
var show = !this.showSideBar;
var newState = React.addons.update(
{ $merge: { showSideBar: show } }
joho /
Created Nov 11, 2014
Script for publishing buildbox build wait times as an AWS cloudwatch metric
# Publishes CloudWatch metrics about Buildbox queue length
set -e
# Determines whether a binary exists on the current $PATH

Web developer

We’re looking for someone to help us craft the future of the platform and help us grow to support multiple products across multiple countries. We’re looking for someone who thrives in self-driven environments and who writes test-driven, maintainable and scalable code.

Do you appreciate the value of doing things right? Want to push the boundaries through fortnightly R&D days? And drive community best practice through developer meetups and open source contributions?

Great - we’ve got 40 million viewers per month waiting to appreciate your work.

Key Responsibilities

joho / Makefile
Created Oct 4, 2014
Building and deploying static sites to s3 with
View Makefile
# Variables
# Destroy the final targets
rm -rf $(DIST)/*
# Compile the final targets
joho / test_troll_cowboy_fixes.rb
Last active Aug 29, 2015
For the ultimate in CI lols.
View test_troll_cowboy_fixes.rb
require 'test/unit'
class TestTrollCowboyFixes < Test::Unit::TestCase
def test_how_you_didnt_actually_fix_it
if `git show --quiet HEAD --oneline` =~ /fixed it|fixes specs|quick fix/i
joho / fuck_xml_fo_life.rb
Created May 2, 2014
Fun little middleware I rediscovered in the Goodfilms codebase.
View fuck_xml_fo_life.rb
class FuckXmlFoLife
def initialize(app)
@app = app
def call(env)
if env["HTTP_ACCEPT"] == 'application/xml'[], 406).finish

Ruby Developers!

We're growing our team and we're looking for great developers who would love the opportunity to work in Australia's premier Ruby development company. We're calling out to developers with deep commercial Ruby experience who have built high traffic applications that like working in cross-functional teams.

You'd be primarily doing backend Ruby and Rails work, but we also expect that you're a pretty comfortable working on the full stack. We'd expect you know how to write well isolated tests, you value pragmatic design, want to easily deploy to production and care about writing good software. That's what we do.

Our Marketplace is loved by our customers and receives an extremely high amount of traffic - larger than most websites in Australia. If you're interested we'd love to give you a role in our company that strives for technical excellence, is relaxed, humane and lets you make decisions.

What you'll be doing

View gist:9263653
### Keybase proof
I hereby claim:
* I am joho on github.
* I am joho ( on keybase.
* I have a public key whose fingerprint is A885 1880 7057 1F7E DB3A CEFC 37DD 0E81 E983 175C
To claim this, I am signing this object:
ssh -o StrictHostKeyChecking=no -o'HostKeyAlgorithms=ssh-rsa' 2&1> /dev/null
ssh -o StrictHostKeyChecking=no -o'HostKeyAlgorithms=ssh-dss' 2&1> /dev/null
View Makefile
# A simple Makefile alternative to using Grunt for your static asset compilation
## Usage
# $ npm install
# And then you can run various commands:
# $ make # compile files that need compiling
# $ make clean all # remove target files and recompile from scratch