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

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

@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)
@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 / 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

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);
👻 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
@joho
joho / gist:7238
Created August 26, 2008 09:09 — forked from ryan-allen/gist:7230
,---------------------.
_.--._ ( I only bone *artists* )
,' `. `-,-------------------'
/ __) __` \ _.-'
( (`-`(-') )
/) \ _ / (
/' )-._.' . \ ___
( ,--., `.)___(___)
)( /-.,--'\ _ \X/`
'/ .'/ \ ( Uu")\
@joho
joho / gist:15236
Created October 7, 2008 04:02
git log | grep -i 'dhh'
git log | grep -i 'dhh'
DHH is an a-hole. validates_uniqueness_of is supposed to be case insensitive by default according to the docs, but it ain't.
if i ever meet DHH i'm gonna punch him in the face for changing this aspect of the rails api, then i'm gonna get him to punch me in the face for not fixing all the holes in our app, and now i'm gonna go hunting in the logs to find the user who pissed us off so we can all punch them in the face
stupid madness, stupid dhh and stupid me redux
stupid madness, stupid dhh and stupid me
#!/usr/bin/env ruby
# Open a new tab in Terminal
# usage: tab [cmd]
# If cmd is specified, it will be run in new tab while old tab is reactivated.
# If no cmd, new tab is activated
require "rubygems"
# gem install rb-appscript
require "appscript"
include Appscript