Skip to content

Instantly share code, notes, and snippets.

View tahb's full-sized avatar

Tom Hipkin tahb

  • dxw
  • London
View GitHub Profile
@tahb
tahb / gist:8e1700e4409b8c36711b1819ae64cbac
Created July 23, 2021 11:35
Mid-sprint review template
# <project name> - Mid-Sprint Review
2020-09-30
- Meeting objectives
- Review sprint goals
- Review Trello
- Update sprint goals
## Meeting objectives
@tahb
tahb / gist:573d96d3d0f75a8ad6579f0d306ad8f2
Last active September 29, 2021 15:19
Sprint pre-planning template
# <project name> Pre-sprint planning
2020-03-04
- How have we done against our previous sprint goals?
- Taking stock (person by person)
- What should our new sprint goals be?
- What is needed to achieve those goals?
## How have we done against our previous sprint goals?
@tahb
tahb / gist:276defa68e8e218475573045340526e4
Created July 23, 2021 11:11
Sprint planning template
# <project name> Sprint Planning - Sprint x
2020-09-23
Link to trello:
## Agenda
- How is everyone?
- Project Goals
- Goals for this sprint
- Planning the sprint

Keybase proof

I hereby claim:

  • I am tahb on github.
  • I am thaw (https://keybase.io/thaw) on keybase.
  • I have a public key whose fingerprint is CDA5 9B6B 00F9 7DB7 EC54 61C1 B811 EC7C E237 0D48

To claim this, I am signing this object:

@tahb
tahb / gist:79f2457c0f05fe07c47841e2eda694a4
Created March 13, 2020 17:45
WIP extending govuk form builder so radio inputs support checked defaults
Rails.application.config.action_view.default_form_builder = GOVUKDesignSystemFormBuilder::FormBuilder
# Don't use XHR when submitting forms
Rails.application.config.action_view.form_with_generates_remote_forms = false
# Use activerecord.attributes.model.attribute_name for label scope
module GOVUKDesignSystemFormBuilder
module Builder
def govuk_collection_radio_buttons(attribute_name, collection, value_method, text_method, hint_method = nil, hint_text: nil, legend: {}, inline: false, small: false, bold_labels: false, checked: false, classes: nil, &block)
Elements::Radios::Collection.new(
@tahb
tahb / spike.yml
Last active February 4, 2020 17:18
SPIKE - IATI participating organisations across the activity levels
---
hmt:
name: HM Treasury
reference: GB-GOV-2
type: 10
beis:
name: Department for Business, Energy and Industrial Strategy
reference: GB-GOV-13
type: 10
@tahb
tahb / Dockerfile
Last active September 10, 2018 09:55
Docker multi-stage builds with the GOV.UK Design system (2018)
# Install dependencies into a seperate and isolated Docker stage
# that is thrown away apart from any subsequent COPY commands
FROM mkenney/npm:latest AS dependencies
ENV INSTALL_PATH /deps
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH
COPY package.json ./package.json
COPY package-lock.json ./package-lock.json
RUN npm set progress=false && npm config set depth 0
RUN npm install --only=production
@tahb
tahb / .rubocop.yml
Created April 4, 2016 15:27
rubocop styles
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.3
Style/StringLiterals:
Exclude:
- bin/setup
- config/application.rb
- db/schema.rb
@tahb
tahb / fizzbuzz.c
Created April 4, 2016 13:44
Fizzbuzz in C
#include <stdio.h>
int main(void)
{
int i;
for(i=1; i<=100; ++i)
{
if (i % 3 == 0)
printf("Fizz");
if (i % 5 == 0)
@tahb
tahb / prompt_sorin_setup
Created November 27, 2015 13:29
Theme override: prezto/modules/prompt/functions
#
# A simple theme that displays relevant, contextual information.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Screenshots:
# http://i.imgur.com/nrGV6pg.png
#