Skip to content

Instantly share code, notes, and snippets.

View joejag's full-sized avatar

Joe Wright joejag

View GitHub Profile

Back to main

Bottling!

Prepare equipment:

  • Bottles
  • Capper
  • Bottle caps
  • Siphon
@joejag
joejag / resty.md
Last active August 29, 2015 14:01
Glasgow restaurants

Italian

  • Piccolo Mondo
  • Fratelli Sarti's
  • Celino’s

Indian

  • Mother India
  • The Dhabba
@joejag
joejag / conway.clj
Created May 16, 2014 16:47
Conways GoL: I'm trying out using the threading macro
(ns joejag.conway)
(def world #{[1 2] [2 2] [3 2]})
(defn neighbours-of
[[x y]]
[ [(dec x) (inc y)] [x (inc y)] [(inc x) (inc y)]
[(dec x) y ] [(inc x) y ]
[(dec x) (dec y)] [x (dec y)] [(inc x) (dec y)]
])
@joejag
joejag / tester.md
Last active August 29, 2015 14:02
Tester interview

Exercise - test cross browser, don't put validation on a field

Give recent feature, ask how to test

Mindset - agile?

Type of tester - Exploratory, Automation, Master Test Plan

What problems are you currently seeing? Can the devs fix it?

@joejag
joejag / databases.md
Last active August 29, 2015 14:04
7 Databases in 7 weeks

Relational

PostgresQL

  • PostgresQL: \h ?
  • Show indexes: \di
  • describe tables: \d+ name

Notes

@joejag
joejag / beer.md
Last active August 29, 2015 14:04
Beer talk

Overview

  • Ingredients (water, malt, hops, yeast)
  • Styles (during ingredients)
  • Equipment (brew day, bottling day)
  • Technique (brew day, fermentation, conditioning, bottling day)
  • Alternatives (3 vessel, keg or cask)
  • Mistakes (write stuff down)

Props:

@joejag
joejag / rabbit.md
Last active August 29, 2015 14:05
RabbitMQ knowledge

Notes from: https://www.rabbitmq.com/tutorials/amqp-concepts.html

Producer -> Broker (Exchange -> Queue) -> Consumer

AMQP 0-9-1 Model in Brief

  • Exchanges uses rules called bindings to go to Queues
  • Publisher can specify Message Attributes
  • Messeages are acknowledged by the consumer automatically or programatically
  • Broker faults: Publisher decides pattern: Return to Sender, Drop, Send to DLQ
@joejag
joejag / arity_exceptioons.clj
Created October 13, 2014 13:52
Clojure arity gotcha
(defn a [a b c] (println "thanks!")) ; => #'user/a
(try (/ 1 2) (catch Exception e (a 1 2))) ; => 1/2
(try (/ 1 0) (catch Exception e (a 1 2))) ; => ArityException Wrong number of args (2) passed to: user/a clojure.lang.AFn.throwArity (AFn.java:429)
@joejag
joejag / counter.rb
Created October 24, 2014 15:51
Count lines of code, simple
def count_lines(directory, extension)
"find #{directory} -name '*.#{extension}' | xargs wc -l | tail -n 1"
end
def count_java_project(dir)
cmd = count_lines(dir + "/src/main", "java")
`#{cmd}`.chomp.split.first
end
def count_clojure_project(dir)
@joejag
joejag / zsh.md
Last active August 29, 2015 14:09
Reasons to Zsh

Big Ticket

  • Tab complete everything
  • Community driven standard (plugins is a first class idea in Zsh)
  • 99% of what you do in bash already works

Things to show

Bash: No cycling, no extra info (just a list), breaks instead of updating in place