Skip to content

Instantly share code, notes, and snippets.

Avatar
💫

Jon Heslop jonheslop

💫
View GitHub Profile
View .hyper.js
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 13,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/jonheslo/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="pure"
View acc.css
.custom-branding #global-header,
.custom-branding #global-header .header-wrapper {
position: relative;
background-color: #238b4f;
}
.custom-branding #global-header #logo,
.custom-branding #global-header .header-wrapper #logo {
color: #ffffff;
background-image: none;
@jonheslop
jonheslop / layout.njk
Created Nov 29, 2017
GOV.UK Pay Nunjucks bits
View layout.njk
{% extends "../../govuk_modules/govuk_template/views/layouts/govuk_template.njk"%}
{% block page_title %}GOV.UK Pay{% endblock %}
{% block head %}
{% include "includes/head.njk" %}
{% endblock %}
{% set homepage_url = '/' %}
{% set logo_link_title = 'Go to the the GOV.UK Pay Homepage' %}
View keybase.md

Keybase proof

I hereby claim:

  • I am jonheslop on github.
  • I am jonheslop (https://keybase.io/jonheslop) on keybase.
  • I have a public key ASAmfff3c1xe45dcvphD7LEyq-RxZ3ykWSlVvekcKmliwwo

To claim this, I am signing this object:

@jonheslop
jonheslop / govuk-pay-peformance-after.json
Created Nov 19, 2018
Lighthouse report before migrating to GOV.UK Frontend
View govuk-pay-peformance-after.json
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3615.0 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3615.0 Safari/537.36","benchmarkIndex":1182},"lighthouseVersion":"3.2.0","fetchTime":"2018-11-19T12:30:50.620Z","requestedUrl":"https://selfservice.payments.service.gov.uk/create-service/register","finalUrl":"https://selfservice.payments.service.gov.uk/create-service/register","runWarnings":[],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications
View govuk-pay-peformance-after-js.json
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3615.0 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3615.0 Safari/537.36","benchmarkIndex":1176},"lighthouseVersion":"3.2.0","fetchTime":"2018-11-20T17:05:50.150Z","requestedUrl":"https://selfservice.payments.service.gov.uk/create-service/register","finalUrl":"https://selfservice.payments.service.gov.uk/create-service/register","runWarnings":[],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications
View govuk-pay-peformance-after-js-latest-chrome.json
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3617.0 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3617.0 Safari/537.36","benchmarkIndex":1164},"lighthouseVersion":"3.2.0","fetchTime":"2018-11-21T10:07:21.180Z","requestedUrl":"https://selfservice.payments.service.gov.uk/create-service/register","finalUrl":"https://selfservice.payments.service.gov.uk/create-service/register","runWarnings":[],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications
View govuk-pay-peformance-after-js-without-jquery.json
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3618.0 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3618.0 Safari/537.36","benchmarkIndex":1208},"lighthouseVersion":"3.2.0","fetchTime":"2018-11-22T12:43:16.632Z","requestedUrl":"https://selfservice.payments.service.gov.uk/create-service/register","finalUrl":"https://selfservice.payments.service.gov.uk/create-service/register","runWarnings":[],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications
@jonheslop
jonheslop / govuk-pay-peformance-before.json
Last active Nov 29, 2018
Lighthouse report before migrating to GOV.UK Frontend
View govuk-pay-peformance-before.json
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3605.0 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3605.0 Safari/537.36","benchmarkIndex":1080},"lighthouseVersion":"3.2.0","fetchTime":"2018-11-08T13:12:03.177Z","requestedUrl":"https://selfservice.payments.service.gov.uk/create-service/register","finalUrl":"https://selfservice.payments.service.gov.uk/create-service/register","runWarnings":[],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications