Skip to content

Instantly share code, notes, and snippets.

import requests
import base64
def download_and_convert_svg(url):
try:
# Download SVG image from the URL
response = requests.get(url)
response.raise_for_status()
# Convert the SVG content to base64
In case of Docker Compose Error in Ubuntu 18.04:
Install with:
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
import sys
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
# plt.style.use('ggplot')
fig1, ax1 = plt.subplots()
data = [meanthreshold_finaluserlatencies, percentilethreshold_finaluserlatencies, nothing_finaluserlatencies, random_finaluserlatencies]
mylabels = ["Mean\nThreshold", "Percentile\nThreshold", "No Scaling", "Random Scaling"]

Each client will broadcast its own IP, NICK and TIMESTAMP along with its own peerList in every T seconds.

Each client will be maintaining its own peerList by listening to thsese broadcasts.

Peer expiry will not be there.

In case of duplicate NICKS are fine (as it cannot be stopped).

In case of same IP and 2 different NICKS, the old NICK will be replaced by the newer one.

@ghoshbishakh
ghoshbishakh / GSOC 2016 report.md
Last active August 19, 2016 20:42
Final report of the work done, Google Summer Of Code 2016