Skip to content

Instantly share code, notes, and snippets.

View Noxville's full-sized avatar
🎮
esports

Ben Steenhuisen Noxville

🎮
esports
View GitHub Profile
import copy
import math
import random
MINUS_BIG = -100000
def gen_teams(n, d=20):
return list(range(1000, 1000 + (n * d), d))
def elo(a, b, boX=1):
@Noxville
Noxville / 1-way-trades.txt
Created December 31, 2020 01:23
possible_transfers
Victor Lindelöf|Harry Maguire|1.115000000000002|2.3679999999999666|0.6
Victor Lindelöf|Timothy Castagne|1.698999999999998|1.4799999999999898|0.9
Victor Lindelöf|Aaron Cresswell|0.3860000000000028|2.879999999999967|0.5
Victor Lindelöf|Aaron Wan-Bissaka|0.9879999999999995|1.8119999999999834|0.5
Victor Lindelöf|Thiago Thiago|0.0|2.901999999999987|0.8
Victor Lindelöf|James Justin|1.4140000000000015|0.5099999999999625|0.2
Victor Lindelöf|Angelo Ogbonna|0.1810000000000045|1.728999999999985|0.2
Victor Lindelöf|Reece James|0.0|1.4639999999999702|0.4
Victor Lindelöf|Stuart Dallas|0.0|0.3529999999999802|0.0
Victor Lindelöf|Luke Ayling|0.0|0.22799999999998022|-0.3
@Noxville
Noxville / ad_gpm_dist.sqlo
Created December 23, 2020 07:39
Ability Draft GPM distribution
rounded_gpm | _count | mids
-------------+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
100 | 519095 | {}
200 | 3259729 | {}
300 | 5963104 | {}
400 | 5860942 | {}
500 | 4009851 | {}
600 | 2133370 | {}
700 | 872630 | {}
800 | 284265 | {}
@Noxville
Noxville / gist:f2b6d0bfa7709e9c40aa9e92c38b771f
Created December 22, 2020 07:29
most_popular_lineup.sql
-[ RECORD 1 ]-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
heroes | {28,50,60,102,103}
array_agg | {"Radical Online X-tremists","Radical Online X-tremists","Radical Online X-tremists","Team. Spirit","Radical Online X-tremists","Radical Online X-tremists"}
array_agg | {379611842,526493458,412172421,2329077949,418292669,552615770}
array_agg | {"G-League 2013","Netolic Pro League 5 West Ticket","Netolic Pro League 4","WePlay League Season 3","Netolic Pro League 4","SLTV Star Series Season 9 Ticket - No Contribution"}
array_agg | {"2013-11-11 11:02:49","2014-02-17 18:18:19","2013-12-06 22:33:52","2016-04-30 01:28:28","2013-12-11 22:15:02","2014-03-07 20:55:31"}
sum | 6
1677721618_3970041014_0.ogg
1677721618_3970041014_1.ogg
1677721618_3970041014_3.ogg
1677721618_3970041014_76561198049256125.ogg
1677721618_3970041014_76561198051553006.ogg
1677721618_3970041014_76561198063652492.ogg
1677721618_3970041014_76561198085476563.ogg
1677721840_3970454002_0.ogg
1677721840_3970454002_1.ogg
1677721840_3970454002_2.ogg
1677721618_3970041014_0.ogg
1677721618_3970041014_1.ogg
1677721618_3970041014_3.ogg
1677721618_3970041014_76561198049256125.ogg
1677721618_3970041014_76561198051553006.ogg
1677721618_3970041014_76561198063652492.ogg
1677721618_3970041014_76561198085476563.ogg
1677721840_3970454002_0.ogg
1677721840_3970454002_1.ogg
1677721840_3970454002_2.ogg
@Noxville
Noxville / iteration_1.log
Created December 22, 2020 00:43
Wildcard Iteration #1
Kyle Walker-Peters -> 100.0
Mohamed Salah -> 100.0
Alex McCarthy -> 100.0
Benjamin Chilwell -> 100.0
Raphael Dias Belloli -> 100.0
Marcus Rashford -> 100.0
Patrick Bamford -> 100.0
Michail Antonio -> 100.0
Ademola Lookman -> 82.88
Jamie Vardy -> 75.96
import json
from os import listdir
from os.path import isfile, join
import os
dir_path = os.path.dirname(os.path.realpath(__file__))
onlyfiles = [f for f in listdir(dir_path) if isfile(join(dir_path, f)) and ".json" in f]
unordered = []
for f in onlyfiles:
@Noxville
Noxville / autoexec_addons.cfg
Last active July 15, 2020 18:02
Useful config for playing/spectating Dota
// Pain / Damage
dota_health_hurt_decay_time_max 0
dota_health_hurt_decay_time_min 0
dota_health_hurt_delay 0
dota_pain_decay 0
dota_pain_multiplier 0
dota_pain_factor 0
dota_pain_fade_rate 0
dota_health_hurt_threshold 99999
x*floor(x*floor(x*floor(x))) = 2020
x = 2020/floor(x*floor(x*floor(x)))
aside notes:
divisor of 2020: {1, 2, 4, 5, 10, 20, 101, 202, 404, 505, 1010, 2020}
positive:
* but x between 6 and 7 (inc. function)
* so floor(x*floor(x*floor(x))) in (2020/7, 2020/6)
* so floor(x*floor(x*floor(x)) in (288, 337)