Skip to content

Instantly share code, notes, and snippets.

View colonelpanic8's full-sized avatar

Ivan Malison colonelpanic8

  • San Francisco, CA
View GitHub Profile
class TagClass(Base):
__tablename__ = "tag_class"
id = sa.Column(sa.BIGINT, primary_key=True)
class TagClassJoin(Base):
__tablename__ = "tag_class_join"
id = sa.Column(sa.BIGINT, primary_key=True)
tag_id = sa.Column(
sa.BIGINT,
class TagClass(Base):
__tablename__ = "tag_class_join"
id = sa.Column(sa.BIGINT, primary_key=True)
tag_id = sa.Column(
sa.BIGINT,
sa.ForeignKey("tag.id", onupdate="CASCADE", ondelete="CASCADE"),
nullable=False,
)
class ShotTakerModel(Base):
__tablename__ = "shot_taker"
id = sa.Column(sa.BIGINT, primary_key=True)
shot_id = sa.Column(
sa.BIGINT,
sa.ForeignKey("shot.id", onupdate="CASCADE", ondelete="CASCADE"),
nullable=False,
)
+----------------+--------+---------+-------+--------------------+
| name | loc | commits | files | distribution (%) |
+----------------+--------+---------+-------+--------------------+
| Ivan Malison | 16,925 | 727 | 130 | 75.3 / 80.2 / 85.5 |
| kkathuang | 3,721 | 4 | 69 | 16.5 / 0.4 / 45.4 |
| Mike Kalange | 806 | 151 | 39 | 3.6 / 16.7 / 25.7 |
| mike kalange | 779 | 4 | 35 | 3.5 / 0.4 / 23.0 |
| Andy Malkin | 249 | 9 | 9 | 1.1 / 1.0 / 5.9 |
| dean wenstrand | 2 | 2 | 2 | 0.0 / 0.2 / 1.3 |
| deanwenstrand | 1 | 1 | 1 | 0.0 / 0.1 / 0.7 |
import functools
from enum import Enum
from typing import List, Optional, Union
class OpType(Enum):
ATTR = 1
ITEM = 2
CALL = 3
FOREACH = 4

Most important XMonad bindings cheatsheet

Terminology

Mod is just a weird name for super, which is a weird name for the windows/mac os/system key

dmenu stuff

import numpy as np
class DirectionalConsistencyFilter:
def __init__(
self,
reference_point=None,
):
self.reference_point = reference_point or np.array([0.0, 0.0])
self.manual_reset(reference_point)
def build_Q(self):
# For position
q_pos = self.Q_discrete_white_noise(dim=2, dt=self.dt, var=self.q_var_pos)
# Combine into a single Q matrix
diag_components = [q_pos] * self.dim_pos
return block_diag(*diag_components)
def build_Q(self, q_var_pos, q_var_vel, dim_pos, dt):
import functools
from typing import Callable, Dict, Iterable, List
from intervaltree import Interval, IntervalTree
from ..vision.track import DetectionHistory
from .session import BallDetection, BallIdentifier
class MultiDetectionHistory:
error: builder for '/nix/store/p9w87cxpwvdb7yi5xfbpi3s5wfkv3ig0-python3.12-cffi-1.15.1.drv' failed with exit code 2;
last 10 log lines:
> cffi/vengine_cpy.py:4: in <module>
> import sys, imp
> E ModuleNotFoundError: No module named 'imp'
> =========================== short test summary info ============================
> ERROR testing/cffi0/test_zdistutils.py
> ERROR testing/cffi1/test_new_ffi_1.py
> ERROR testing/cffi1/test_parse_c_type.py
> !!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!