Skip to content

Instantly share code, notes, and snippets.

View heathd's full-sized avatar

David Heath heathd

View GitHub Profile
@heathd
heathd / key bindings.json
Created May 18, 2019 16:23
Sublime settings
[
{ "keys": ["ctrl+command+r"], "command": "reveal_in_side_bar"},
{ "keys": ["super+q"], "command": "wrap_lines" }
]
openapi: 3.0.0
info:
description: GOV.UK Pay API
version: 1.0.0
title: GOV.UK Pay API
tags:
- name: refunds
description: Public Api Endpoints for Refunds
paths:
/v1/payments:
@heathd
heathd / julia pierce.md
Last active October 6, 2017 07:52
Mapcamp 2017

julia pierce

mapping->duplication (post merger) "we'd done this to ourselves"

separation of users into two classes affected everybody

FROM node:6.10.0-alpine
RUN apk update && apk upgrade
# Install packages needed for production
RUN apk add --update bash python make g++
# Install packages needed for testing
RUN apk add --update ruby openssl
@heathd
heathd / config
Last active August 29, 2015 14:16 — forked from issyl0/config
[
{
"userName": "alphagov",
"repo": "asset-manager"
},
{
"userName": "alphagov",
"repo": "authenticating-proxy"
},
{
@heathd
heathd / schema.rb
Created February 5, 2015 23:34
Attempt to reproduce globalize issue (PR#330)
ActiveRecord::Migration.verbose = false
ActiveRecord::Schema.define do
create_table :products, :force => true do |t|
t.timestamps
end
create_table :product_translations, :force => true do |t|
t.string :locale
t.references :product
@heathd
heathd / psql.go
Created January 16, 2015 15:48
psql connection example
package main
import (
"database/sql"
"fmt"
_ "github.com/lib/pq"
"log"
)
func main() {
@heathd
heathd / stanford-nlp-test.rb
Created January 6, 2015 17:10
stanford-nlp-test.rb
require 'stanford-core-nlp'
# Set an alternative path to look for the JAR files
# Default is gem's bin folder.
StanfordCoreNLP.jar_path = File.realpath(File.dirname(__FILE__)) + '/jars/'
StanfordCoreNLP.model_path = File.realpath(File.dirname(__FILE__)) + '/jars/'
StanfordCoreNLP.use :english
StanfordCoreNLP.model_files = {}
StanfordCoreNLP.default_jars = [
'jollyday.jar',
@heathd
heathd / Gemfile
Last active August 29, 2015 14:02
Ruby2Ruby destroys its input
source 'http://rubygems.org'
gem 'ruby2ruby'
gem 'rspec'