Skip to content

Instantly share code, notes, and snippets.

View jdekarske's full-sized avatar
👨‍🚀

Jason Dekarske jdekarske

👨‍🚀
View GitHub Profile
@jdekarske
jdekarske / association_object.py
Last active November 28, 2024 04:22
This is a demonstration of how association objects work without the python typing syntax. turns out that was old syntax https://docs.sqlalchemy.org/en/14/orm/basic_relationships.html#association-object
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy.orm import DeclarativeBase
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from sqlalchemy import Column
# This script demonstrates a quiz bank with questions and answers.
#!/bin/bash
# please don't put nonsense temperatures here, I don't check
mintemp=50
maxtemp=100
# found by running `sudo pwmconfig`
minspeed=10
maxspeed=255
@jdekarske
jdekarske / Dockerfile
Created July 20, 2021 21:45
DiNo Dockerfile
FROM ubuntu:16.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Los_Angeles
RUN apt-get update -qq \
&& apt-get -y install vim git wget\
build-essential bison libc6-dev-i386 gcc-multilib g++-multilib byacc \
autoconf m4 automake gettext autopoint libtool