Skip to content

Instantly share code, notes, and snippets.

@xaviergmail
xaviergmail / exceptiongroups.py
Last active November 9, 2022 22:16
pytest exceptiongroups helpers
from typing import Callable, List, Optional, Tuple, Type, TypeVar, Union
from ._compat import BaseExceptionGroup
E = TypeVar("E", bound=BaseException)
ExceptionMatch = Union[
Type[E],
Tuple[Type[E], ...],
Callable[[E], bool],
]
@xaviergmail
xaviergmail / launch.json
Created January 26, 2021 20:09
VSCode node debug current file
// Create a folder called .vscode and save this file in there as launch.json
// It should look like this: project_directory/.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Current Opened File",
"skipFiles": ["<node_internals>/**"],
@xaviergmail
xaviergmail / PORTFOLIO.md
Created July 28, 2020 00:33
I moved away from GitHub!

I moved away from GitHub!

Instead, I use my self-hosted GitLab community edition. I have over 125 repositories stored there. Most repositories including my games are private. If you are an employer and would like to request read-only access to my proudest projects, please contact me in any way you see fit. My email is xavier.bergeron<at>forgerstudios.com