Skip to content

Instantly share code, notes, and snippets.

View addiebarron's full-sized avatar

Addie B addiebarron

View GitHub Profile
@addiebarron
addiebarron / raspi-portainer-templates.json
Created January 11, 2022 23:30
App templates for portainer on a Raspberry Pi 4.
{
"version": "2",
"templates": [
{
"categories": [
"Music"
],
"description": "Airsonic is a free, web-based media streamer, providing ubiqutious access to your music. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.",
"env": [
{
@addiebarron
addiebarron / Dockerfile
Last active August 6, 2021 19:40
Dockerfile for deploying from a pipenv setup
# syntax=docker/dockerfile:1
FROM python:3.9
ENV PYTHONUNBUFFERED=1
# Make app directore and cd
RUN mkdir /app
WORKDIR /app
# Install dependencies
COPY Pipfile .
@addiebarron
addiebarron / sketch.js
Last active September 30, 2019 17:01
tic tac toe in p5.js
// dependencies
// https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js
// intialization
let game,
player1,
player2,
numCells = 3,
boardSize = 500, // px
c = boardSize / numCells; // width of one cell