sudo yum update
sudo yum install git
git clone https://gist.github.com/2776679.git
chmod 777 install-redis.sh
./install-redis.sh
Thu Jan 9 21:19:01 UTC 2020 |
sudo yum update
sudo yum install git
git clone https://gist.github.com/2776679.git
chmod 777 install-redis.sh
./install-redis.sh
sudo yum update
##Install Redis https://gist.github.com/dstroot/2776679
wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh
chmod 777 install-redis.sh
./install-redis.sh
from collections import deque | |
class hashabledict(dict): | |
def __hash__(self): | |
return hash(tuple(sorted(self.items()))) | |
def dictFromChar2D(c2d=[], filtr=lambda _:True): | |
return { | |
(x,y):c | |
for y,c1d in zip(range(len(c2d)),c2d) |