Skip to content

Instantly share code, notes, and snippets.

View plasticrake's full-sized avatar

Patrick Seal plasticrake

View GitHub Profile
@plasticrake
plasticrake / arcade.py
Last active July 25, 2022 21:01
arcade
from time import monotonic_ns
from adafruit_seesaw.digitalio import DigitalIO
from adafruit_seesaw.pwmout import PWMOut
from adafruit_seesaw.seesaw import Seesaw
class ArcadeButton:
def __init__(self, seesaw: Seesaw, button_pin: int, led_pin: int):
@plasticrake
plasticrake / .editorconfig
Last active October 18, 2020 18:58
Basic Template
root = true
[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
indent_style = space
indent_size = 2
@plasticrake
plasticrake / diceroller-3.js
Last active October 18, 2020 18:34 — forked from dangerwizzrd/diceroller-3.js
dicerollerV3
const myCharOne = {
name: "Zolda",
class: "Wizard",
maxHp: 90,
currentHp: 75,
armorClass: 16,
atkBonus: 7,
magicBonus: 10,
};
'use strict';
function getAsyncTests () {
return new Promise((resolve, reject) => {
setTimeout(resolve, 1);
});
}
(async () => {
let tests = await getAsyncTests();
#!/bin/sh
killall "Plex Media Server"
sleep 5
open "/Applications/Plex Media Server.app"