Skip to content

Instantly share code, notes, and snippets.

Avatar
At harbour

John Barton joho

At harbour
View GitHub Profile
View a_thing.js
toggleSideBar: function(e) {
console.log("poo bum");
console.log(this.state);
var show = !this.showSideBar;
var newState = React.addons.update(
this.state,
{ $merge: { showSideBar: show } }
);
console.log(newState);
this.setState(newState);
@joho
joho / buildbox_cloudwatch.sh
Created Nov 11, 2014
Script for publishing buildbox build wait times as an AWS cloudwatch metric
View buildbox_cloudwatch.sh
#!/bin/bash
#
# Publishes CloudWatch metrics about Buildbox queue length
set -e
API='https://api.buildbox.io'
BUILDS_ROUTE='v1/accounts/ACCOUNT_NAME/projects/PROJECT_NAME/builds'
# Determines whether a binary exists on the current $PATH
View developer.md

Web developer

We’re looking for someone to help us craft the future of the 99designs.com 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
joho / Makefile
Created Oct 4, 2014
Building and deploying static sites to s3 with http://harpjs.com/
View Makefile
# Variables
SRC=src
DIST=dist
# Destroy the final targets
clean:
rm -rf $(DIST)/*
# Compile the final targets
all:
@joho
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
assert(false)
end
end
end
@joho
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
end
def call(env)
if env["HTTP_ACCEPT"] == 'application/xml'
Rack::Response.new([], 406).finish
else
@app.call(env)
View envato-ruby-dev.md

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 (https://keybase.io/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:
View trust_github_lol.sh
#!/bin/bash
ssh git@github.com -o StrictHostKeyChecking=no -o'HostKeyAlgorithms=ssh-rsa' 2&1> /dev/null
ssh git@github.com -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