Skip to content

Instantly share code, notes, and snippets.

@jabley
jabley / allspaw.md
Last active December 26, 2017 13:36
SREcon preparation reading lists

Writing Post Mortems - John Allspaw

This talk is also known as ‘PostMortem Facilitation: Theory and Practice of "New View" Debriefings’ Background reading for attendees

@jabley
jabley / email.md
Last active August 29, 2015 14:16
Democracy Club email

Dear Potential MP,

I'm a potential voter / constituent for Insert your consituency here.

I've been looking at candidates CVs on Democracy Club, to understand whether I feel a candidate best represents my views in the coming election. I would appreciate you adding your CV to this service, so that I and all other voters in the constituency have all the data available to us when it comes to making a decision on polling day.

@jabley
jabley / Main.java
Created February 28, 2015 13:53
Printing out rows
import java.util.Arrays;
public final class Main {
public static void main(String[] args) {
int[][] rows = new int[18][28];
for (int[] row : rows) {
System.out.println(Arrays.toString(row));
}
}
@jabley
jabley / Overview.md
Last active August 29, 2015 14:13
Python and Go side-by-side

We have 2 projects:

https://github.com/alphagov/backdrop/tree/master/backdrop/write implements the existing write API.

The Go version is virtually identical on a feature basis, except it's faster :)

Writing

@jabley
jabley / keybase.md
Created September 24, 2014 13:01
Keybase claim file

Keybase proof

I hereby claim:

  • I am jabley on github.
  • I am jamesabley (https://keybase.io/jamesabley) on keybase.
  • I have a public key whose fingerprint is 84A2 6DB0 2192 B901 AE66 40D6 EEFB 65A6 FA2D E7C6

To claim this, I am signing this object:

@jabley
jabley / lpa_help.go
Last active August 29, 2015 14:02
Simple thing to download LPA help text occurrences over time
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"time"
@jabley
jabley / Profiling.sh
Last active August 29, 2015 14:00
Exploring go pipelines and concurrency constructs
master % scala ~/Projects/stripe-ctf-3/level1 > go tool pprof solve parallel.prof
Welcome to pprof! For help, type 'help'.
(pprof) topN
Total: 3501 samples
2696 77.0% 77.0% 2696 77.0% runtime.mach_semaphore_wait
227 6.5% 83.5% 227 6.5% runtime.usleep
95 2.7% 86.2% 95 2.7% crypto/sha1.block
50 1.4% 87.6% 50 1.4% runtime.mach_semaphore_timedwait
39 1.1% 88.7% 39 1.1% runtime.casp
26 0.7% 89.5% 136 3.9% runtime.mallocgc

Information Revolution in Government

GDS/GOV.UK context

Martha’s report

Need-o-tron

? Suck all of the existing content into a search index? No

built a tool to force people to think about the problem in a particular way

giving people a framework to think about needs

recording decisions in a transparent fashion

GOV.UK

here’s what that lead to

@jabley
jabley / govuk-browsers-2012-12-to-2013-05.csv
Last active December 18, 2015 21:49
GOV.UK browser stats 2012-12 to 2013-05
Desktop Internet Explorer 9.0 21.24% 22.34% 21.72% 20.8% 20.51% 18.89% 14.96% 13.83% 10.17%
Desktop Chrome 23 0.1% 10.28% 21.21% 12% 0.35% 0.17% 0.13% 0.12% 0.07%
Desktop Chrome 27 0% 0% 0% 0% 0% 0.02% 0.08% 0.43% 20.36%
Desktop Chrome 24 0.02% 0.06% 0.08% 7.55% 19.25% 2.44% 0.15% 0.12% 0.08%
Desktop Chrome 26 0% 0% 0% 0.01% 0.02% 0.07% 15.6% 19.04% 2.27%
Desktop Chrome 25 0% 0.01% 0.02% 0.06% 0.14% 18.82% 5.8% 0.2% 0.17%
Desktop Chrome 22 17.55% 9.2% 0.19% 0.09% 0.07% 0.08% 0.06% 0.07% 0.05%
Desktop Internet Explorer 8.0 15.58% 15.2% 15.1% 13.61% 14.06% 12.94% 12.25% 13.36% 11.94%
iOS Safari 6.1 0% 0% 0% 0% 6.29% 10.9% 12.92% 13.12% 13.71%
iOS Safari 6.0 8.29% 9.46% 9.02% 11.88% 6.63% 2.6% 2.1% 1.68% 1.5%
@jabley
jabley / govuk-browser-2012-12-23.csv
Created June 21, 2013 11:08
GOV.UK browser usage 2013-01 to 2013-06
Desktop Internet Explorer 9.0 20.83%
Desktop Internet Explorer 8.0 13.33%
Desktop Chrome 23 13.06%
iOS Safari 6.0 12.04%
Desktop Chrome 24 6.38%
Desktop Firefox 17 5.15%
Desktop Safari 6 3.14%
Desktop Firefox 18 2.88%
Desktop Internet Explorer 7.0 2.66%
iOS Safari 5.1 2.26%