This file contains hidden or 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
mkdir -p /root/build | |
docker run --name centos --hostname centos -it -v /root/build:/root/build centos:7 /bin/bash | |
# inside centos container | |
yum install -y epel-release | |
yum install -y git jq wget cmake3 make gcc-c++ rpm-build rpmdevtools | |
yum install -y centos-release-scl | |
yum install -y devtoolset-8 | |
scl enable devtoolset-8 bash | |
cd /root/build |
This file contains hidden or 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
class PriorityQueue: | |
@dataclass(order=True) | |
class _PrioritizedItem: | |
sort_order: int | |
priority: int | |
item: Any = field(compare=False) | |
def __init__(self): | |
self.pq = [] |
OlderNewer