Skip to content

Instantly share code, notes, and snippets.

View GastonMazzei's full-sized avatar

Gaston Mazzei GastonMazzei

View GitHub Profile
@GastonMazzei
GastonMazzei / distributed-self-stabilizing-ring-node-counter.py
Created March 8, 2022 14:19
Each processor (node of a ring network) applies a set of local rules and is able to count the number of nodes in the network. It is self-stabilizing as it supports random initialization.
import numpy as np
import matplotlib.pyplot as plt
from uuid import uuid4
"""
Distributed Self-stabilizing Algorithms:
Compute locally the ring's size.
assuming all variables are initialized randomly.
@subfuzion
subfuzion / curl.md
Last active July 18, 2024 17:12
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@MrChuffmanSnippets
MrChuffmanSnippets / index.html
Created March 15, 2012 10:05
HTML5: Blank Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href="style.css" rel="stylesheet" />
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>