Skip to content

Instantly share code, notes, and snippets.

View Noxville's full-sized avatar
🎮
esports

Ben Steenhuisen Noxville

🎮
esports
View GitHub Profile
for i in range(10):
num = int('53013180176278773980288979275410970' + str(i) + '139358547710066257652050346294484433323974747960297803292989236183040000000000')
print("num (_ = {}): {}".format(i, num))
divides = []
for fac in range(99, 1, -1):
if num % fac == 0:
divides.append(fac)
num /= fac
Map<Integer, String> heroPictures = [
1: "antimage",
2: "axe",
3: "bane",
4: "bloodseeker",
5: "crystal_maiden",
6: "drow_ranger",
7: "earthshaker",
8: "juggernaut",
9: "mirana",
[
{
"name": "Fahrvhan the Dreamer",
"times_picked": 73,
"flop": 44,
"turn": 19,
"river": 10,
"games_played": 249,
"games_won": 499
},
[
{
"name": "Black/Red",
"colors": [
[
"BLACK",
3
],
[
"RED",
<p><br></p><p>After months of excitement and anticipation, today we had our first taste of competitive Artifact! Beyond the Summit (BTS) is hosting a closed-beta draft tournament, casted by Luminousinverse, Fwosh and Swim, in addition to analysis from Savjz, Lifecoach, Hyped and Joel Larson. The day started by watching Lifecoach’s draft. It took awhile for Lifecoach to find a direction, as the packs were not giving a clear signal. That changed when Lifecoach a second Bounty, followed soon after by an Iron Fog Goldmine and a Horn of the Alpha. Expensive items like Horn of the Alpha are generally not strong in draft, as they are so difficult to buy, but given a good density of gold generation, Lifecoach was able to put together a decent red black green Econ deck.</p><p>&nbsp;</p><p><img src="https://www.googleapis.com/download/storage/v1/b/artifaction-gg.appspot.com/o/articlesImages%2F57db221a76e221d102f26946abe71cab?generation=1541957011294206&amp;alt=media" width="230" style="display: block; margin: auto;"></
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import requests
import json
url = "http://datdota.com/api/frames?frame_field=networth&time=35&aggregate=none&sort=desc&tier=1&tier=2&valve-event=does-not-matter&threshold=1&patch=7.19&patch=7.18&patch=7.17&patch=7.16&patch=7.15&patch=7.14&patch=7.13&patch=7.12&patch=7.11&patch=7.10&patch=7.09&patch=7.08&patch=7.07&patch=7.06&patch=7.05&patch=7.04&patch=7.03&patch=7.02&patch=7.01&patch=7.00&patch=6.88&patch=6.87&patch=6.86&patch=6.85&patch=6.84&patch=6.83&patch=6.82&patch=6.81&patch=6.80&patch=6.79&patch=6.78&patch=6.77&patch=6.76&patch=6.75&patch=6.74&after=01%2F01%2F2011&before=05%2F11%2F2018&duration=0%3B200&duration-value-from=0&duration-value-to=200"
data = json.loads(requests.get(url).text)['data']
_x = range(5,201)
2 Nicol Bolas, the Ravager
3 Doom Whisperer
3 Rekindling Phoenix
1 Siege-Gang Commander
2 Thief of Sanity
1 Verix Bladewing
1 Treasure Map
2 The Eldest Reborn
import requests
patch_hero_map = {}
for patch in ['7.19', '7.18', '7.17', '7.16', '7.15', '7.14', '7.13']:
hmap = {}
url = "http://datdota.com/api/heroes/performances?patch={}&after=01%2F01%2F2011&before=07%2F09%2F2018&duration=0%3B200&duration-value-from=0&duration-value-to=200&tier=1&tier=2&valve-event=does-not-matter&threshold=1".format(patch)
for row in requests.get(url=url).json()['data']:
hmap[row['hero']] = row['wins'] / (row['wins'] + row['losses'])
patch_hero_map[patch] = hmap
from random import random
class Team:
def __init__(self, true_skill, rank):
self.true_skill = true_skill
self.rank = rank
def __repr__(self):
return "{} ({} Elo)".format(self.rank, self.true_skill)
match_id | jakiro_won
------------+------------
3971717222 | f
3966744537 | f
3927970381 | t
3899867571 | f
3891287696 | t
3889219951 | f
3831145338 | t
3815701161 | t