Skip to content

Instantly share code, notes, and snippets.

View nitheesh-me's full-sized avatar

Nitheesh Chandra nitheesh-me

  • India
  • 23:05 (UTC +05:30)
View GitHub Profile
@nitheesh-me
nitheesh-me / external.yaml
Last active March 5, 2020 16:47
Test for ref with multiple files
get:
responses:
"200":
description: Details for Nudge
content:
application/json:
type: object
parameter:
success:
type: bool
@nitheesh-me
nitheesh-me / README.md
Created August 14, 2024 13:44
Distributed System Event Simulation with Logical Clock Visualization

The provided Python code is a comprehensive simulation of a distributed system, designed to model and analyze the behavior of processes and their communication through events. It includes three main components: ProcessSimulator, LogicalClockCalculator, and TimelinePlotter.

Requires the following packages

matplotlib
numpy

I was using xkcd style plots, so I have installed additional fonts.

import Lean
import Std.Data.HashMap
open Lean Elab Command Term Meta
open Std HashMap
inductive Error
| varNotFound (x : String) : Error
deriving Repr