Skip to content

Instantly share code, notes, and snippets.

@justcallmelarry
justcallmelarry / talks.txt
Last active November 15, 2023 09:33
talks
https://www.destroyallsoftware.com/talks/boundaries
@justcallmelarry
justcallmelarry / main.go
Last active January 3, 2023 14:03 — forked from andream16/main.go
Build ExpressionAttributeValues and UpdateExpression from map[string]interface{} - AWS Go SDK, DynamoDB
package main
import (
"fmt"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/fatih/structs"
)
@justcallmelarry
justcallmelarry / README.md
Last active April 19, 2024 09:01
FastAPI signal handler

Useful if you need to have some sort of child process stop handling something on received termination signal, rather than when the service is shutting down

@justcallmelarry
justcallmelarry / context.py
Last active July 1, 2022 12:55
context class with dynamic descriptor
from __future__ import annotations
from contextvars import ContextVar
from typing import Callable, Generic, Type, TypeVar, Union
_CONTEXT: ContextVar[dict] = ContextVar("custom_context")
T = TypeVar("T")
class Descriptor(Generic[T]):
from __future__ import annotations
import re
from decimal import ROUND_HALF_UP, Decimal, InvalidOperation # noqa
from typing import Any, Tuple, Type, Union
class Number(Decimal):
def __new__(cls: Type[Number], value: Union[int, str, float, Decimal] = "0") -> Number:
if isinstance(value, float):

Keybase proof

I hereby claim:

  • I am justcallmelarry on github.
  • I am justcallmelarry (https://keybase.io/justcallmelarry) on keybase.
  • I have a public key whose fingerprint is B741 9D23 2D28 D669 F127 6859 C45D 49C8 687A B67C

To claim this, I am signing this object:

# HYGIEN
badrumsstuffs
handduk
tvättpåse
sol-mousse
huvudvärkstabletter
resorb
glasögon
linser
(´⊙ω⊙`)
( ͡° ͜ʖ ͡°)
ᕦ(ò_óˇ)ᕤ
^_^
^ ^
^ - ^
^^
(^^)
(^ ^)
(^.^)