This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const demofile = require('demofile'); | |
const fs = require('fs'); | |
const _ = require('lodash'); | |
// Replace with your own demo files | |
const INFERNO_DEMOS = [ | |
'/Users/shoffing/inferno-demos/astralis-vs-liquid-inferno.dem', | |
'/Users/shoffing/inferno-demos/fnatic-vs-complexity-inferno.dem', | |
'/Users/shoffing/inferno-demos/g2-vs-cloud9-inferno.dem', | |
'/Users/shoffing/inferno-demos/g2-vs-mibr-inferno.dem', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
# Distance function | |
dist = lambda a, b: np.linalg.norm(a - b) | |
# Load word2vec data file (gl0ve) | |
w2v = {} | |
with open("glove/glove.6B.50d.txt", "r", encoding="utf-8") as w2v_file: | |
for word_enc in w2v_file: | |
word = word_enc[:word_enc.index(" ")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import random | |
class Node: | |
def __init__(self, x, y, air=0.0, wall=False): | |
self.x = x | |
self.y = y | |
self.air = air | |
self.wall = wall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pathlib | |
import subprocess | |
import re | |
VIDEO_TYPES = [ | |
'.mp4', | |
'.avi', | |
'.mkv', | |
'.mov', | |
'.webm', |
OlderNewer