Skip to content

Instantly share code, notes, and snippets.

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,[email protected],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,[email protected],2025-01-24,,N,Citizen of Seychelles,
ENU7xSDX5we0N7TRb,L10C,USFIC,156625963,9787194620,7,Snail,Dodie,,,,OEC,A-WE,11,,,,,R,,N,2008-01-02,[email protected],2025-03-28,,C,Kuwaiti,
dlR,F39Y,UMPWHPPY,827747252,5928337683,4,Hedgehog,Dodie,,,555-8842,,A-A,11,R,,,,,,N,2008-01-01,[email protected],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,[email protected],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,[email protected],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,[email protected],2024-05-17,,N,Vietnamese
SA5bbjxh9wvbYpSexAmtgVmlyrlt1a7pbwwmt88uYedtdbuAyi8ykrrqfcabhcmC,A100,USPCM,565417479,4778031771,5,Echidna,Donette,,,,HEP,A-WR,11,U,I,R,,,,N,2004-10-25,[email protected]
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
@d6y
d6y / playground.rs
Created December 16, 2020 09:40 — forked from rust-play/playground.rs
Code shared from the Rust Playground
trait Debuggable {
fn debug(self) -> Self;
}
impl<T> Debuggable for T
where
T: Sized + std::fmt::Debug,
{
fn debug(self) -> Self {
dbg!(self)
@d6y
d6y / playground.rs
Created December 16, 2020 09:33 — forked from rust-play/playground.rs
Code shared from the Rust Playground
trait Debuggable {
fn debug(self) -> Self
where
Self: Sized + std::fmt::Debug,
{
dbg!(self)
}
}
impl<T> Debuggable for T {}
@d6y
d6y / gist:5455c7e4129456da6be819b90b9cb449
Created May 19, 2020 11:47
piusher overriding date time format
// Override the default LocalDateTime formatting
// (the default splits out each date.time element as a seperate field: hour, minute, day, etc)
def newInstance(url: String): Pusher = {
import com.google.gson._
import java.lang.reflect.Type
val localDateTimeSerializer: JsonSerializer[LocalDateTime] = new JsonSerializer[LocalDateTime] {
def serialize(src: LocalDateTime, typeOfSrc: Type, context: JsonSerializationContext): JsonElement =
new JsonPrimitive(src.toString())
@d6y
d6y / darn.txt
Last active March 12, 2020 14:11
~/Developer/darn via C darn
❯ conda install -c conda-forge jupyterlab -y
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /Users/richard/opt/miniconda3/envs/darn
added / updated specs:
Jan Length Difference Additional daylight (seconds) Length of day (hours)
01/01/2020 08:01:54 01:00 60.00 8.03
02/01/2020 08:03:01 01:06 66.00 8.05
03/01/2020 08:04:14 01:12 72.00 8.07
04/01/2020 08:05:33 01:18 78.00 8.09
05/01/2020 08:06:57 01:24 84.00 8.12
06/01/2020 08:08:27 01:29 89.00 8.14
07/01/2020 08:10:02 01:35 95.00 8.17
08/01/2020 08:11:43 01:40 100.00 8.20
09/01/2020 08:13:28 01:45 105.00 8.22