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 sys | |
import os | |
import csv | |
import json | |
import struct | |
import argparse | |
from io import BytesIO | |
from enum import Enum, EnumMeta | |
from urllib.parse import unquote |
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 glob | |
import hashlib | |
import os.path | |
import pickle | |
import sys | |
import zipfile | |
import cv2 | |
import onnx | |
from onnx import numpy_helper |
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
# some explanation | |
# I used pysfml-cython to do this, since I couldn't find needed function in PySFML | |
# that constructs RenderWindow from existing window handle. And after I found it | |
# (according to python-sfml wiki it was sf.Window.from_handle), I already finished | |
# this example and porting my own project from pygame to pysfml-cython. | |
# I know pysfml-cython is outdated and based on sfml2.0. All I had to do is | |
# clone SFML project, checkout tag 2.0, compile it. Then checkout pysfml-cython, | |
# compile it and that's it. I ended up with 7 sfml dlls and sfml.pyd which I put | |
# in the same dir as this file. | |
# Now, I did all this on Windows, just so you know. I have no idea if it even works |
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
// anime and character searches for MyAnimeList.net | |
// An advanced search command for MyAnimeList.net | |
CmdUtils.CreateCommand({ | |
names: [ "mal-search", "anime-search" ], //mal as in MyAnimeList.net 8) | |
author: { name: "aoikishu"}, | |
contributors: [ "Irwin1138" ], | |
description: "Searches anime on MyAnimeList.net", | |
help: "You can specify a type (ova, tv, movie, special or ona) and a score", | |
/// Parser 2 incompatible old format |