Skip to content

Instantly share code, notes, and snippets.

View peteryates's full-sized avatar
🪶

Peter Yates peteryates

🪶
View GitHub Profile
@peteryates
peteryates / notify-api.md
Created April 13, 2023 11:01
Making requests to the Notify API via the command line

Accessing the Notify API from the command line

Prerequisites

Building a bearer token

  1. First generate an API key using Notify's admin interface. The API key consists of three parts:
erDiagram
    User ||--o{ Application : makes
    Application ||--o{ Course : "for a"
    Application ||--o{ "Lead Provider" : "provides"
    School o|--o{ "Application" : ""
    "Private childcare provider" o|--o{ Application : ""
    Cohort ||--o{ Application : ""
    Cohort ||--o{ Statement : ""
 Cohort ||--o{ Schedule : "belongs to" 
@peteryates
peteryates / fixing-tables.patch
Created June 24, 2024 10:40
Fixing a pandoc-generated Word table in AsciiDoc
diff --git a/documentation/providers/ecf-call-off-contract-2023-2024-redacted.adoc b/documentation/providers/ecf-call-off-contract-2023-2024-redacted.adoc
index c0dbeff..ca2fe44 100644
--- a/documentation/providers/ecf-call-off-contract-2023-2024-redacted.adoc
+++ b/documentation/providers/ecf-call-off-contract-2023-2024-redacted.adoc
@@ -3393,9 +3393,9 @@ of the KPI target
[width="100%",cols="57%,27%,16%",options="header",]
|===
-|*KPI;* |*Measure* |
-a|
@peteryates
peteryates / 01.cr
Last active December 1, 2025 16:28
AOC 2025 day 1
wheel = (0..99).to_a
wheel.rotate!(50)
data = File.read("input.txt").chomp.split("\n")
puts "Part 1"
part_1_hits = 0
part_1_wheel = wheel.dup
current_position = part_1_wheel.first