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
["pyproject.toml".tool.yapf] | |
based_on_style = "facebook" | |
align_closing_bracket_with_visual_indent = true | |
allow_multiline_dictionary_keys = true | |
coalesce_brackets = true | |
column_limit = 79 | |
dedent_closing_brackets = false | |
spaces_around_power_operator = true |
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
#!/usr/bin/env python | |
# | |
# IceCream - Never use print() to debug again | |
# | |
# Ansgar Grunseid | |
# grunseid.com | |
# [email protected] | |
# | |
# Pavel Maevskikh |
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
# Simple script to disable ASLR and make .nv_fatb sections read-only | |
# Requires: pefile ( python -m pip install pefile ) | |
# Usage: fix_pe.py --input path/to/*.dll | |
import shutil | |
from argparse import ArgumentParser | |
from pathlib import Path | |
import pefile |
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
from __future__ import annotations | |
import numpy as np | |
class TPS: | |
@staticmethod | |
def fit(c: np.ndarray, delta: np.ndarray, lambd: float = 0., reduced: bool = False) -> np.ndarray: | |
# c: (N, 2), delta: (N, 2) -> (N + 2, 2) or (N + 3, 2) | |
n = len(c) |
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 os | |
import warnings | |
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser | |
from collections.abc import Callable | |
from concurrent.futures import ProcessPoolExecutor | |
from functools import partial | |
from itertools import count | |
from time import perf_counter | |
os.environ['CUDA_MODULE_LOADING'] = 'LAZY' |