I hereby claim:
- I am clauswrm on github.
- I am clauswrm (https://keybase.io/clauswrm) on keybase.
- I have a public key ASCC2DKG_8JNLLfUhetpAWEM8zExQ1Ve8SapB28Kc2bb_go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from time import time | |
from math import ceil | |
prev_time = 0.0 | |
def progress(total: int, current: int, steps=20): | |
""" Displays a progress bar with time information. """ | |
itrs_per_step = ceil(total / steps) |
If anyone is having trouble commiting and pushing signed commits in IntelliJ IDEA (or any other JetBrains IDE) like me, here are the steps:
This guide assumes that you have [generated a GPG key added it to your GitHub account][github_sign_gpg].
def sean_paul(levels=0): return 'Sean %s Paul' % ('"' + sean_paul(levels=levels - 1) + '"') if levels > 0 else 'Sean Paul' |
def groupify(binary_matrix): | |
""" | |
Finds all distinct groups of 1's in a 2x2 binary matrix | |
:param binary_matrix: A 2x2 binary matrix | |
:type binary_matrix: list | |
:return: A matrix with all nodes, arranged in a disjoint set forest | |
:rtype: list | |
""" |