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
# EC, Field are in http://afiodorov.github.io/2019/06/18/elliptic/ | |
from dataclasses import dataclass | |
from random import randint | |
@dataclass | |
class Signature: | |
sig: int | |
pp: EC.Point | |
randomx: int |
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
import numpy as np | |
class Board: | |
def __init__(self): | |
self.turn = 0 | |
self.state = np.full((3, 3), "_") | |
def __str__(self): | |
r = f"{self.player()}'s turn\n{self.state}'" | |
if self.winner() is not None: | |
r += f"\nWinner: {self.winner()}" |
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
#!/bin/bash | |
awk -F'\t' 'BEGIN {print "<head><meta charset="UTF-8"></head><body><table>"} {print "<tr><td>"$1"</td><td>"$2"</td></tr>"} END {print "</table></body>"}' MySpanish.txt > MySpanish.txt.html |
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
Dear all, | |
We are organising, starting Wednesday on the 2nd of December, a reading group on an introductory book for machine learning. | |
The book is called "The Elements of Statistical Learning" and is freely available online: http://statweb.stanford.edu/~tibs/ElemStatLearn/. | |
The book requires some basic background in Linear Algebra and Probability Theory usually covered in maths undergraduate courses. | |
The reading group will take place every Wednesday between 17:30 - 19:30 in X-Men Origins Seminar Room, Kathleen Lonsdale Building, 5 Gower Place. |
NewerOlder