I hereby claim:
- I am codebyaidan on github.
- I am codebyaidan (https://keybase.io/codebyaidan) on keybase.
- I have a public key whose fingerprint is 52F2 5B80 BC0F 597C A204 851A FABF 7402 790A 0641
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| $semiColon = ';' | |
| $pathArray = $env:PATH -split $semiColon | |
| $uniquePathArray = $pathArray | Select-Object -Unique | |
| $newPath = ($uniquePathArray -join $semiColon) | |
| [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::User) | |
| # Verify changes using $env:PATH -split $semiColon | ForEach-Object { $_ } |
| def baz( | |
| a: int, | |
| b: int, | |
| /, | |
| c: int | None = None, | |
| *args: int, | |
| d: int | None = None, | |
| **kwargs: int, | |
| ) -> None: | |
| print("--------------------") |
| def pretty_repr_types[ | |
| K, V: dict | list | str | int # type: ignore - dict and list expect type arguments (pyright) | |
| ](obj: dict[K, V] | list[V] | str | int, indent: int = 0) -> str: | |
| """Recursively prints the types of keys and values in a dictionary.""" | |
| spacing: str = " " * indent | |
| if isinstance(obj, dict) and not isinstance(obj, str): | |
| result = "{\n" | |
| for key, value in obj.items(): | |
| key_type: str = repr(type(key)) |
| import collections.abc | |
| from types import SimpleNamespace | |
| class CustomABCMeta(type): | |
| _abc_cache = set() | |
| _abc_negative_cache = set() | |
| _abc_negative_cache_version = 0 | |
| _abc_invalidation_counter = 0 |
| from collections import defaultdict | |
| from typing import Any, Dict, List, Self, Tuple | |
| import polars as pl | |
| from fuzzywuzzy import fuzz, process | |
| class NameClusterer: | |
| def __init__(self, df: pl.DataFrame, column: str, threshold: int) -> None: | |
| self.df: pl.DataFrame = df |
| from typing import Callable, Generic, ParamSpec, Protocol, TypeVar, overload | |
| _PD = ParamSpec('_PD') | |
| _PF = ParamSpec('_PF') | |
| _RD = TypeVar('_RD') | |
| _RF = TypeVar('_RF') | |
| # from functools import _Wrapped as _W | |
| class _W(Generic[_PF, _RF, _PD, _RD]): | |
| ... |
| import sys | |
| from typing import TypeVar | |
| __all__: list[str] = [ | |
| "Any", | |
| "cast", | |
| "reveal_type", | |
| ] | |
| def gradient_text(text: str, start_color: str, end_color: str) -> Text: | |
| gradient = Text() | |
| start: ColorTriplet | None = Color.parse(start_color).triplet | |
| end: ColorTriplet | None = Color.parse(end_color).triplet | |
| for i, char in enumerate(text): | |
| ratio: float = i / (len(text) - 1) | |
| blended_color = tuple( | |
| int(start[j] + (end[j] - start[j]) * ratio) for j in range(3) | |
| ) | |
| color_code: str = f"#{''.join(f'{value:02x}' for value in blended_color)}" |
| Set-Clipboard -Value ("`"" + (Get-Location).Path + "`"") | |
| # "C:\Windows" |