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
| <html lang="en"> | |
| <head> | |
| <meta content="Nuts for Tokens - Commander (Toski, Bearer of Secrets)" property="og:title"> | |
| <meta content="Toski is ready and able to lure in the enemy so your army can get through. Watch out for his hammer!" property="og:description"> | |
| <meta content='https://assets.moxfield.net/cards/card-Yoej2-art_crop.jpg' property='og:image'> | |
| <meta name="theme-color" content="#E85485"> | |
| <link type="application/json+oembed" href="https://gist.githubusercontent.com/Jerakin/c7e93b35fd360ed9775c8a595ad1d7c8/raw/927c3f555b80e091c33806aaf55d055bdfc2b630/discord-embed.json" /> | |
| </head> | |
| </html> |
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
| local md5 = require "main.md5" | |
| local by_index = {} | |
| local by_id = {} | |
| local function time_it(fnc) | |
| local before = os.clock() | |
| fnc() | |
| print((os.clock() - before)*1000) | |
| end |
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
| from PIL import Image | |
| from pathlib import Path | |
| import json | |
| root = Path(__file__).parent | |
| output = root / "assembled_tokens" | |
| tokens = root / "images" | |
| token_source = root / "token_source" | |
| data_file_folder = root.parent.parent.parent / "assets" / "datafiles" | |
| pokemon_folder = data_file_folder / "pokemon" |
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 pkg_resources | |
| def get_pkg_license(pkgname): | |
| pkgs = pkg_resources.require(pkgname) | |
| pkg = pkgs[0] | |
| try: | |
| lines = pkg.get_metadata_lines('METADATA') | |
| except: | |
| lines = pkg.get_metadata_lines('PKG-INFO') |
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
| clean: | |
| rm -rf *.egg-info | |
| rm -rf dist | |
| build: | |
| python setup.py bdist_wheel | |
| install: | |
| pip install ./dist/getbob-$(shell cat "./getbob/__init__.py" | grep -Eo -m 1 "[0-9\.ab]{5,}")-py3-none-any.whl |
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/python | |
| from __future__ import print_function | |
| import os.path | |
| import csv | |
| import json | |
| import sys | |
| import gzip | |
| import ntpath | |
| _json_loads = None |
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 time | |
| import requests | |
| import shutil | |
| import re | |
| p = r".\pokemon_order.json" | |
| dirty_reg = re.compile("filehistory-selected[^\"]*.*?(cdn\.bulbagarden\.net/upload[^\"]*)") |
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
| # builtin imports | |
| import argparse | |
| from pathlib import Path | |
| from math import ceil | |
| # 3d Party imports | |
| import deftree | |
| from PIL import Image | |
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
| -- Setting | |
| -- url.set("MAIN", msg.url(".")) | |
| -- | |
| -- Shorthand set | |
| -- url.MAIN = msg.url(".") | |
| -- | |
| -- | |
| -- Getting | |
| -- url.get("MAIN") | |
| -- |