Skip to content

Instantly share code, notes, and snippets.

View amorriscode's full-sized avatar
🦀

Anthony Morris amorriscode

🦀
View GitHub Profile
@amorriscode
amorriscode / hashmap.bfk
Created September 12, 2025 04:49
hashmap implementation in brainfuck
,>,[ # Read key and value pairs until 0 input
# Memory layout: [hash_table(16 slots * 2 cells each)] [temp] [key] [value] [hash] [index] [...]
# Each slot: [key][value], 0 means empty slot
# Store current key and value
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< # Go to temp area (cell 32)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # Go back to input area
# Calculate simple hash (key mod 16)
>+> # Initialize hash calculation area
import { generateAuthTokenFromRole } from "aws-msk-iam-sasl-signer-js";
import { Kafka } from "kafkajs";
class TokenCache {
private tokenData: string;
private expiresAt: number;
constructor() {
this.tokenData = "";
this.expiresAt = 0;
Currently reading: The Obstacle Is the Way, The Timeless
Art of Turning Trials into Triumph by Ryan Holiday
Recently read: Be Water, My Friend by Shannon Lee

Keybase proof

I hereby claim:

  • I am amorriscode on github.
  • I am amorriscode (https://keybase.io/amorriscode) on keybase.
  • I have a public key ASBZcAgQxSy94PQIv6cr-_jAw6wNnpdgfbvH9F4eZRfEKwo

To claim this, I am signing this object: