ESP32 Firmware binary as requested by: Josverl/micropython-stubber#42 (comment)
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 socketIO_client import SocketIO, BaseNamespace | |
import logging | |
logging.getLogger('socketIO-client').setLevel(logging.DEBUG) | |
device_info = { | |
'name': "PYTHON TEST DEVICE", | |
'secret': "lmaolmao", | |
'width': 360, | |
'height': 240 |
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
#!/bin/bash | |
ssh ubuntu@54.206.64.114 'bash ~/delivery-webapp/scripts/on_server.sh && exit' |
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 typing_extensions import Annotated as An | |
from runtype_validation import validate, InRange | |
@validate | |
def test_fn(a: An[int, InRange(0, 100)], b: An[float, InRange(0, 1)]): | |
pass | |
test_fn(50, 0.5) # works | |
try: | |
test_fn(0.5, 0.5) # TypeError: Expected a to have type <class 'int'> but got <class 'float'> |
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 typing import Any, Collection, Dict | |
from sympy import Expr, MatrixExpr, Basic, MatrixSymbol, sin, Matrix, Tuple, Function, solve, ImmutableDenseMatrix, Symbol, symbols, StrPrinter, Eq, randMatrix, cos, MatMul, Derivative, Integral, ShapeError | |
from sympy.core import cacheit | |
from sympy.core.sympify import _sympify | |
from sympy.core.symbol import Str | |
import unittest | |
__all__ = ["SymbolicMatrixFunction", "solve_with_sym_matrices"] |
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 nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 | |
RUN apt update -y && \ | |
# python3 is 3.10 in ubuntu 22.04 | |
apt install -y python3 python3-pip curl && \ | |
apt clean -y | |
ARG POETRY_VERSION | |
RUN curl -sSL https://install.python-poetry.org | python3 - --version ${POETRY_VERSION} | |
ENV PATH "/root/.local/bin:$PATH" |