Skip to content

Instantly share code, notes, and snippets.

View oitee's full-sized avatar

Otee oitee

View GitHub Profile
@oitee
oitee / twirl_c4.puml
Created January 12, 2022 13:18
New Twirl Architecture
@startuml
title New Twirl Architecture
top to bottom direction
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
Person(User, "User", "Someone who wants to shorten links")
//======================================================================================
// List of each condition
//======================================================================================
/**
* Given a list of digits, returns true
* if the first and second digits equal to 24
* @param {Array} digits
* @returns Boolean
*/
@oitee
oitee / kv_store.js
Last active December 12, 2021 13:41
Database server that stores key-value pairs
export default class KVStore {
#data;
constructor() {
this.#data = new Map();
}
/**
* Given a key, returns its value
* @param {any} key
* @returns {any}
sudo docker run -it clojure:latest bash