Skip to content

Instantly share code, notes, and snippets.

View Calvin-L's full-sized avatar

Calvin Loncaric Calvin-L

View GitHub Profile
@samyonr
samyonr / ConvergingLivenessCondition.tla
Created December 24, 2023 13:35
TLA when strong fairness isn't strong enough: ConvergingLivenessCondition
-------------------- MODULE ConvergingLivenessCondition --------------------
EXTENDS TLC, Integers
(***************************************************************************)
(* A number of actors, each want to transition from IDLE to PREPARED, and *)
(* then from PREPARED to DONE. Once an actor is DONE it'll stay DONE, but *)
(* it can go backward from PREPARED to IDLE if the situation looks dicey. *)
(* *)
(* IDLE <---> PREPARED ---> DONE *)
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""