This file contains hidden or 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 json | |
import os | |
import requests | |
from argparse import ArgumentParser | |
from collections import defaultdict | |
from time import sleep | |
OPENDOTA_BASE_URL = 'https://api.opendota.com/api/{func_name}/{params}' |
This file contains hidden or 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 requests | |
import xlsxwriter | |
from argparse import ArgumentParser | |
from collections import defaultdict | |
from copy import copy | |
from datetime import datetime | |
from itertools import zip_longest | |
from time import sleep | |
from urllib.parse import urlencode |
This file contains hidden or 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 json | |
import math | |
import os | |
from collections import defaultdict | |
xp_chart = [300, 600, 1100, 1700, 2300, 4200, 6000, 7350, 9930, 11800, | |
15600, 19600, 23700, 26400, 30500, 35400, 40500, 45700, 51000, 56600, | |
63900, 71400, 79100, 87100, 95200, 109800, 124800, 140200, 155900, 162500, | |
175900, 189600, 203500, 217900, 232320, 249900, 267800, 286200, 304900, 324000, |
This file contains hidden or 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 os | |
from shutil import copyfile | |
def copy_file(dest): | |
copyfile('window_group_move.css', dest) | |
def edit_browser_html(filename): |
This file contains hidden or 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
/* Remove header */ | |
:-webkit-any(.native, .maximized)#browser #header { | |
min-height: 0 !important; | |
} | |
/* Keep Vivaldi button */ | |
:-webkit-any(.native, .maximized)#browser .vivaldi { | |
z-index: 1; | |
top: 5px !important; | |
} |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
Script including useful commands | |
Includes: | |
Flatten folders -- flattens folders into a single folder (can be called recursively) | |
Compare -- compares two strings/files and prints out results | |
""" |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
Script to split audiobook chapters into separate files using metadata | |
""" | |
from __future__ import print_function | |
import os | |
import re |