Code samples for dublin talk