Skip to content

Instantly share code, notes, and snippets.

View edran's full-sized avatar
🚒
Pls work on climate now! Email me, I can help!

Nantas Nardelli edran

🚒
Pls work on climate now! Email me, I can help!
View GitHub Profile
@edran
edran / check_rep.py
Created February 16, 2017 18:30 — forked from ebetica/check_rep.py
Runs through a directory of starcraft replays and outputs all the corrupt ones
# This script tries as best as possible to filter out bad replays
# Pass it a subdir, and it will read all '.rep' files, and spit out a list
# of the corrupt files in stdout
from __future__ import print_function
from pyreplib import replay # https://github.com/HearthSim/pyreplib/
from itertools import repeat
from multiprocessing import Pool, Process, Pipe
from multiprocessing.pool import ThreadPool
import os
import sys
@edran
edran / rep_info.py
Created February 16, 2017 18:30 — forked from ebetica/rep_info.py
Example script to go through some starcraft replays and grab infomation about it, dumping into a CSV
# This script tries as best as possible to filter out bad replays
# Pass it a subdir, and it will read all '.rep' files, and spit out a list
# of the corrupt files in stdout
from __future__ import print_function
from pyreplib import replay
from itertools import repeat
from multiprocessing import Pool, Process, Pipe
from multiprocessing.pool import ThreadPool
from Queue import Queue
import os
#!/usr/bin/env python
class ExamBoard(object):
def submit(self, work):
work_is_passing_grade = len([work]) > 0
return work_is_passing_grade
class Society(object):