Skip to content

Instantly share code, notes, and snippets.

View kounkou's full-sized avatar
:octocat:
...

Godfrain Jacques kounkou

:octocat:
...
View GitHub Profile
import math
read_lin = 4
read_len = 16
def allindices(string, sub, listindex=[], offset=0):
i = string.find(sub, offset)
while i >= 0:
listindex.append(i)
i = string.find(sub, i + 1)