Skip to content

Instantly share code, notes, and snippets.

View jonheslop's full-sized avatar
💫

Jon Heslop jonheslop

💫
View GitHub Profile
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)',
# 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"
.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 / mind-dump.md
Last active July 6, 2021 17:49
My workings on how best to integrate XO (ESLint) and Prettier into a project.

Looking into Formatters & Linters

So after a brief discussion on #nodejs it looks like people would like:

  • To use Prettier to format all our code automagically so it all sticks to one consistent style
  • To use XO as a wrapper on ESLint to enforce code-quality rules
  • To ditch Standard because as it turns out people like semicolons.

What I did first

Read the docs on:

@jonheslop
jonheslop / layout.njk
Created November 29, 2017 15:06
GOV.UK Pay Nunjucks bits
{% 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' %}

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-before.json
Last active November 29, 2018 11:05
Lighthouse report before migrating to GOV.UK Frontend
{"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
@jonheslop
jonheslop / govuk-pay-peformance-after.json
Created November 19, 2018 13:00
Lighthouse report before migrating to GOV.UK Frontend
{"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
{"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
{"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