Skip to content

Instantly share code, notes, and snippets.

@d6y
d6y / gist:e0968a3d09d9405b75e440540bf06e1c
Created March 7, 2026 17:23
Pagecord custom css 6 Mar 2026
@import url(https://fonts.bunny.net/css?family=merriweather:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i);
body {
font-family: Merriweather, serif;
}
.blog-title {
font-size: 1.5rem;
}
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 28 columns, instead of 23 in line 4.
ApplicationID,UCASCourse,RouteCode,StudentID,UCASID,UCASChoice,Surname,Forename1,Forename2,Forename3,ContactTelephone,ApplicationCategory,ApplicationStatus,CourseBlock,Decision1,Response1,Decision2,Response2,Decision3,Response3,ChangeCourse,DateOfBirth,HomeEmail,ApplicationCreated,ExtraRoundNo,Clearing,Nationality,ContextualPolicyApplied
mO1NMKXX12W3TefD8l7juuuhScH01mCD9td203GcrG05R,R900,USMLN,830054847,2866415089,5,Wolve,Deeann,,,555-9693,OEP,A-WR,11,C,D,,,,,N,2008-01-01,,2025-11-02,,N,Canadian,
BEkxvyzNLBnwWNa4XAbkN3DiFiChJjxgq,L202,USPOL,821583986,3375970313,7,Horse,Maddie,,,555-3461,QQP,A-ATR,11,,,,,R,,N,2009-03-21,cbif@example.com,,,C,Thai,E
XXTiQieUsS66ZbenH87HmvlkRvtv1vKEsJ2aw0nDF9UCNNknKdjBfLqtiEwONnxe,W401,USDRF,192936403,2108516696,7,Giraffe,Nina,,,555-1922,HCC,A-RAT,11,,,,,U,D,N,2006-06-08,nayw@example.com,2025-08-13,,C,Salvadorean,
te19sYnpT8ueQQI3m18TvPDQ4UJGN213kUieLiZexuq4TFUElEsnPpCFdmvvcTvL,G101,USMAP,191656974,2919835371,1,Spider,Lelia,,,555-0602,OEP,A-RAD,11,C,I,R,,,,N,2006-08-02,msyx@examp
@d6y
d6y / custom.css
Created February 3, 2026 21:47
Pagecord custom CSS
@import url(https://fonts.bunny.net/css?family=merriweather:300,300i,400,400i,700,700i,900,900i|merriweather-sans:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i);
body {
font-family: Merriweather, serif;
}
h1, h2, h3, h4, h5 {
font-family: 'Merriweather Sans', sans-serif;
}
@d6y
d6y / docker-compose.yaml
Last active August 31, 2025 16:21
A docker compose file for use with Pagecord
name: pagecord-local
networks:
pagecord-net:
services:
postgres:
image: 'postgres:16.8'
restart: no
expose:
We can't make this file beautiful and searchable because it's too large.
ApplicationID,UCASCourse,RouteCode,StudentID,UCASID,UCASChoice,Surname,Forename1,Forename2,Forename3,ContactTelephone,ApplicationCategory,ApplicationStatus,CourseBlock,Decision1,Response1,Decision2,Response2,Decision3,Response3,ChangeCourse,DateOfBirth,HomeEmail,ApplicationCreated,ExtraRoundNo,Clearing,Nationality,ContextualPolicyApplied
2tyfSy41QdHJj0PbBVXYJZ5WFt2Jmfi3nkogHXOOm7KHNfUTEL3g4fL,4G45,USMAB,086855578,9859307280,3,Rabbit,Ashanti,,,555-2766,HEC,A-WE,11,C,I,U,D,,,Y,2007-02-25,fimm@example.com,2025-08-18,,N,Virgin Islander (British),
W08nhwMpLWVEdq4tttDwdopQa2KuhCFt8yOuy5ZMA3lekHXZKTRDRMPz2BUNsJRi,H301,USMECZ,153556507,6244909408,7,Mole,Lelia,,,555-8091,OEC,A-ATR,11,,,,,R,,N,2006-01-01,gdct@example.com,2025-08-18,,C,Bahraini,
e5CmkR2TXBvJsHHaMOI61C9hNYSICpm,LV20,UJHSFPOF,749430259,6710189596,7,Snail,Palma,,,555-2986,HEP,A-A,11,,,,,R,,N,,jtjs@example.com,2025-08-18,,C,Tunisian,
e4kCSjXYuIsu49k1fqzXOjX3b6PPKicGZoCbqRzRnqx84gyWmgCFfP644pAuoRoA,C100,USBIO,242530592,0400340758,7,Frog,Chan,,,555-3395,QQP,A
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 28 columns, instead of 27 in line 4.
ApplicationID,UCASCourse,RouteCode,StudentID,UCASID,UCASChoice,Surname,Forename1,Forename2,Forename3,ContactTelephone,ApplicationCategory,ApplicationStatus,CourseBlock,Decision1,Response1,Decision2,Response2,Decision3,Response3,ChangeCourse,DateOfBirth,HomeEmail,ApplicationCreated,ExtraRoundNo,Clearing,Nationality,ContextualPolicyApplied
PM1QXtqgokRg1VUM9uWAuKWuwXN,R900,UJGRWSPZ,871799488,9760922657,2,Spider,Donette,,,555-4246,HHP,A-ZD,11,U,D,,,,,N,2006-01-01,gvjg@example.com,2025-06-08,,N,Citizen of Kosovo,E
v6ZhMFTyfBCtF7w2jduYMb4QJZYeuc311BYdA9mE,FVNY,UMGEOFBUSF,748736955,6832518793,2,Fish,Cletus,,,555-1850,OHP,A-ATR,11,R,,,,,,N,2008-01-02,izbl@example.com,2025-01-24,,N,Citizen of Seychelles,
ENU7xSDX5we0N7TRb,L10C,USFIC,156625963,9787194620,7,Snail,Dodie,,,,OEC,A-WE,11,,,,,R,,N,2008-01-02,otej@example.com,2025-03-28,,C,Kuwaiti,
dlR,F39Y,UMPWHPPY,827747252,5928337683,4,Hedgehog,Dodie,,,555-8842,,A-A,11,R,,,,,,N,2008-01-01,dcrk@example.com,2025-05-14,,N,Citizen of Cyprus (non-EU)
yRXsvTgu8tQtGYyL06lbJmujtvg
@d6y
d6y / ws_test.js
Created March 12, 2025 10:46
Example (incomplete) web socket testing with k6
import http from 'k6/http';
import ws from 'k6/ws';
import { check, fail, sleep } from 'k6';
// App specific settings, whatever your app needs
let app = {
apiBase: "http://localhost:8080",
ws1: "ws://localhost:8080/api/foo/subscribe",
ws2: "ws://localhost:8080/api/baz/",
sessionCookieName: "sessionToken",
@d6y
d6y / ashp.md
Created January 12, 2025 17:35
gantt
    title Our Air Source Heat Pump Install Timeline (2023 to 2025)
    dateFormat YYYY-MM-DD
    axisFormat %b
    todayMarker off
    section Preliminaries
      Onlne quote        :milestone, 2023-10-05, 1d
      Deposit paid       :milestone, 2023-10-09, id
      Q&A call           :milestone, 2023-10-13, 1d
@d6y
d6y / selectorlist.csv
Created July 22, 2024 10:26
selector list with nationality
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 27 columns, instead of 23 in line 4.
ApplicationID,UCASCourse,RouteCode,StudentID,UCASID,UCASChoice,Surname,Forename1,Forename2,Forename3,ContactTelephone,ApplicationCategory,ApplicationStatus,CourseBlock,Decision1,Response1,Decision2,Response2,Decision3,Response3,ChangeCourse,DateOfBirth,HomeEmail,ApplicationCreated,ExtraRoundNo,Clearing,Nationality
huVjuwlbhjybagpwad6LZdhapusk1mo0Tty3Ufmjd4xjgoX5ncgza5uzyhcx5zxt,H690,USEET,753249857,4220473825,2,Gazelle,Inez,,,555-3239,HCC,A-A,11,R,,,,,,N,2004-01-01,wmyi@example.com,2024-06-20,,N,Citizen of Madagascar
3rud,G1N3,UMMASACT,417163763,1796931139,3,Rabbit,Syreeta,,,555-0755,OEC,A-RPL,11,R,,,,,,N,2007-01-01,blhk@example.com,2024-07-21,,N,Citizen of Madagascar
ibwdg4dp4yji9lnbwvrwweyxdgY5nuygsogrx5aSGgb,R900,UJFRXPGW,029797677,2074987345,4,Warthog,Royal,,,555-3663,OEP,A-WE,11,R,,,,,,N,2006-01-01,pfpq@example.com,2024-05-17,,N,Vietnamese
SA5bbjxh9wvbYpSexAmtgVmlyrlt1a7pbwwmt88uYedtdbuAyi8ykrrqfcabhcmC,A100,USPCM,565417479,4778031771,5,Echidna,Donette,,,,HEP,A-WR,11,U,I,R,,,,N,2004-10-25,qoxg@example.co
Calculating QSAR model...
RANDOM FOREST: 88(train), 22(test), 10 repeats
Warning: final_rf not assigned, so selecting last rf to continue
train_x: [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0