Skip to content

Instantly share code, notes, and snippets.

@BenMac31
BenMac31 / tasks.json
Last active October 26, 2025 18:35
Task management for BodyDouble
{
"Make an awesome video": {
"description": "Make the best hackathon video ever!!!!",
"subtasks": [
"film a cringe intro",
"die inside",
"forget how to speak english",
"film the rest of the video"
],
"due_date": ""
@BenMac31
BenMac31 / addres.py
Last active April 27, 2023 12:07
circuits
from math import *
Resistors = lambda t, *R : {"s": sum(R), "p": 1/sum([1/i for i in R])}[t]
def addResistors():
type = int(input('s or p'))
resistances = input('Input resistances csv no spaces.').split(',')
print(Resistors(type, resistances))