Skip to content

Instantly share code, notes, and snippets.

View pnedunuri's full-sized avatar

Pruthvi Nadunooru pnedunuri

View GitHub Profile
@pnedunuri
pnedunuri / bumpme
Last active January 9, 2020 21:19
pipeline-test
Thu Jan 9 21:19:01 UTC 2020
@pnedunuri
pnedunuri / tesseract-on-linux.md
Last active November 13, 2023 07:20
Steps to install tesseract on linux

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)