Skip to content

Instantly share code, notes, and snippets.

View nims11's full-sized avatar

Nimesh Ghelani nims11

View GitHub Profile
@nims11
nims11 / d2_summarize_enemy.py
Created September 26, 2018 16:26
[Dota2] Helps you ban heroes by summarizing past games of the enemy
# Change the variables MY_ID and SERVER_FILE_PATH, and run this file
# The summary will be generated as soon as a game starts
import sys
import time
import os
import re
import requests
from multiprocessing import Pool
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
@nims11
nims11 / randomTree.py
Created February 13, 2015 08:37
Random Tree Generator
#!/usr/bin/python
import random
import copy
import collections
import Queue
import sys
T = 7
N = 50000
W1, W2 = 1000, 10000