Skip to content

Instantly share code, notes, and snippets.

View oscartbeaumont's full-sized avatar

Oscar Beaumont oscartbeaumont

View GitHub Profile
@oscartbeaumont
oscartbeaumont / modern.ts
Created August 4, 2024 09:30
rspc JS/TS impl for testing new stuff
function concatArrayBuffers(chunks: Uint8Array[]): Uint8Array {
const result = new Uint8Array(chunks.reduce((a, c) => a + c.length, 0));
let offset = 0;
for (const chunk of chunks) {
result.set(chunk, offset);
offset += chunk.length;
}
return result;
}
@oscartbeaumont
oscartbeaumont / keybase.md
Created January 13, 2025 00:24
keybase.md

Keybase proof

I hereby claim:

  • I am oscartbeaumont on github.
  • I am oscartbeaumont (https://keybase.io/oscartbeaumont) on keybase.
  • I have a public key whose fingerprint is CBDB 575D 2701 8C5D DBD3 6A5C 6C4B AB09 FD8A E2B6

To claim this, I am signing this object: