Skip to content

Instantly share code, notes, and snippets.

@pvhee
pvhee / wc-england-teams.json
Last active July 6, 2026 16:00
WC 2026 demo feed (team-based) — England win the World Cup. Matches by team names, works with any knockout runbook.
[
{
"round": "R16",
"teamA": "Canada",
"teamB": "Morocco",
"winner": "Morocco",
"score": "3-0"
},
{
"round": "R16",
@pvhee
pvhee / wc-england-wins.json
Created July 3, 2026 13:09
WC 2026 demo score-sheet — England win the World Cup (matchId → winner/score)
{
"R32-1": { "winner": "Argentina", "score": "2-0" },
"R32-2": { "winner": "Egypt", "score": "1-0" },
"R32-3": { "winner": "Colombia", "score": "3-1" },
"R16-1": { "winner": "France", "score": "2-1" },
"R16-2": { "winner": "Morocco", "score": "1-0 (4-3 pens)" },
"R16-3": { "winner": "Brazil", "score": "3-1" },
"R16-4": { "winner": "England", "score": "2-1" },
"R16-5": { "winner": "Spain", "score": "1-0" },
"R16-6": { "winner": "Belgium", "score": "2-1 (AET)" },
{
"_note": "Mock 2026 World Cup results — remaining Round of 32 → Final, grounded in the real bracket. Belgium's run to the title in normal time. Keyed by match id.",
"R32-5": {"match": "Portugal v Croatia", "winner": "Portugal", "score": "2-1"},
"R32-6": {"match": "Spain v Austria", "winner": "Spain", "score": "3-0"},
"R32-7": {"match": "Colombia v Ghana", "winner": "Colombia", "score": "1-0"},
"R32-8": {"match": "Australia v Egypt", "winner": "Egypt", "score": "2-1"},
"R32-9": {"match": "Switzerland v Algeria", "winner": "Switzerland", "score": "1-0"},
"R32-10": {"match": "Argentina v Cape Verde", "winner": "Argentina", "score": "4-0"},
"R16-1": {"match": "Paraguay v France", "winner": "France", "score": "2-1"},
"R16-2": {"match": "Canada v Morocco", "winner": "Morocco", "score": "1-0"},
@pvhee
pvhee / Faucet.sol
Created September 17, 2021 18:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=false&runs=200&gist=
// SPDX-License-Identifier: CC-BY-SA-4.0
// Version of Solidity compiler this program was written for
pragma solidity 0.8.7;
// Our first contract is a faucet!
contract Faucet {
// Accept any incoming amount
receive() external payable {}
{
"contentTypes": [
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "zsfivwzfgl3t"
}
#!/usr/bin/env bash
[ -f ~/.bashrc ] && . ~/.bashrc
# Changing path to project master
cd ../repository
# Install NPM packages
echo -e "\e[33m1. Running YARN install"
yarn install --no-progress
---
platform: linux
image_resource:
type: docker-image
source: {repository: cypress/base, tag: "8"}
inputs:
- name: repository
path: repository
@pvhee
pvhee / feature-test.yml
Created January 30, 2019 14:33
feature-test (Concourse CI job)
- name: feature-test
serial: true
plan:
- aggregate:
- get: spa-giftaid
passed: [deploy-staging]
trigger: true
- get: bootstrap
- task: 'Run feature tests'
file: bootstrap/scripts/cypress/cypress.yml
@pvhee
pvhee / christmas.sh
Last active December 18, 2018 11:14
Chrismtas Tree at CR
#!/bin/bash
trap "tput reset; tput cnorm; exit" 2
clear
tput civis
lin=2
col=$(($(tput cols) / 2))
c=$((col-1))
est=$((c-2))
color=0
tput setaf 2; tput bold
<!-- InstaWidget -->
<a href="https://instawidget.net/v/tag/everydaycomicrelief" id="link-537042380972653516fc84968d3b759a14301b996a0cdbe55523a19d3ebb581d">#everydaycomicrelief</a>
<script src="https://instawidget.net/js/instawidget.js?u=537042380972653516fc84968d3b759a14301b996a0cdbe55523a19d3ebb581d&width=300px"></script>