This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
traefik: | |
image: "traefik:v2.4" | |
container_name: "traefik" | |
command: | |
- "--providers.docker.endpoint=unix:///var/run/docker.sock" | |
- "--providers.docker=true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Licensed under GPLv3 <http://www.gnu.org/licenses/>. | |
Authors: | |
Eric Lopes | |
""" | |
import random | |
import sys | |
class PostOffice: | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Licensed under GPLv3 <http://www.gnu.org/licenses/>. | |
Authors: | |
Santiago Alessandri | |
Eric Lopes | |
""" | |
helpTable = { | |
(1, 5) : 5, | |
(1, 4) : 6, | |
(1, 3) : 7, | |
(1, 2) : 8, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Licensed under GPLv3 <http://www.gnu.org/licenses/>. | |
Authors: | |
Eric Lopes | |
""" | |
import scipy.linalg | |
import numpy | |
W = numpy.matrix( | |
[[0.4 ,0.4 ,0.2 ,0.0], | |
[0.2 ,0.2 ,0.3 ,0.3], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Licensed under GPLv3 <http://www.gnu.org/licenses/>. | |
Authors: | |
Eric Lopes | |
""" | |
import random | |
def roll(x=[6,6]): | |
for i in range(2): | |
v=random.randint(1,6) | |
if v>=x[i]: return v | |
v=random.randint(1,6) |
The blockchain provides Bitcoin's ledger, a timestamped record of all confirmed transactions. Under normal conditions, a new block of transactions is added to the blockchain approximately every 10 minutes and historic blocks are left unchanged.
This document will describe for developers this normal operating