Skip to content

Instantly share code, notes, and snippets.

{
"Profiles": [
{
"Working Directory": "/Users/zachary",
"Prompt Before Closing 2": false,
"Selected Text Color": {
"Red Component": 0,
"Color Space": "Calibrated",
"Blue Component": 0,
"Alpha Component": 1,
@zacharytamas
zacharytamas / solution1.js
Last active September 6, 2018 19:27
There are so many ways to convert Roman numerals
const convertValueToSymbol = (() => {
const SYMBOLS = {
1000: 'M',
500: 'D',
100: 'C',
50: 'L',
10: 'X',
5: 'V',
1: 'I'
};
    ╭──────────────────────────────────────────────────╮
    │                                                  │
    │   ∿∿∿ streams of thought ∿∿∿                     │
    │        flowing, branching, merging               │
    │                                                  │
    │         ┌─────┐                                  │
    │         │ ? ? │  ← perpetual curiosity          │
    │         │ ? ? │    (it never stops)              │
    │         └──┬──┘                                  │