Skip to content

Instantly share code, notes, and snippets.

View joho's full-sized avatar
At harbour

John Barton joho

At harbour
View GitHub Profile
@joho
joho / output.txt
Last active December 11, 2015 05:08
First cut of analysis of 2015 RubyAU Developer Survey
before_this_survey_were_you_previously_aware_of_ruby_australia_as_an_organisation
{"Yes"=>256, "No"=>48}
how_old_are_you
{"25 - 32"=>126,
"33 - 38"=>93,
"39 - 46"=>47,
"19 - 24"=>17,
"47 - 58"=>19,
"12 - 18"=>1,
👻 dig geolbr.splice.com txt
; <<>> DiG 9.8.3-P1 <<>> geolbr.splice.com txt
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 543
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;geolbr.splice.com. IN TXT
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 November 11, 2014 22:28
Script for publishing buildbox build wait times as an AWS cloudwatch metric
#!/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
@joho
joho / developer.md
Created November 7, 2014 03:05
99designs

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 October 4, 2014 01:20
Building and deploying static sites to s3 with http://harpjs.com/
# 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 August 29, 2015 14:06
For the ultimate in CI lols.
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 22:33
Fun little middleware I rediscovered in the Goodfilms codebase.
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)

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

### 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: