skip to content
tlam://~mrpotato

@mrpotato

member since 2025-02

expressions
3
votes received
1

ls ~mrpotato/ (3)

~/mrpotato/the_perfect_cup_of_coffee.py

The perfect cup of coffee

How do you like yours? You can see from my code that I am quite coffee obsessed to be honest...

from dataclasses import dataclassfrom enum import Enumfrom time import sleepfrom typing import Optionalimport random"""             )  (            (   ) )             ) ( (           _______)_        .-'---------|         ( C|/\/\/\/\/|        '-./\/\/\/\/|
~/mrpotato/dream_or_nightmare.cpp

Dream or nightmare?

Just messing around with C++ as I can't really code anything useful in it...

#include <iostream>#include <vector>#include <cstdlib>#include <ctime>class Dream {protected:    std::string content;    double serenityLevel; // 0 (pure terror) to 1 (absolute peace)public:    Dream(std::string content, double serenity) : content(content), serenityLevel(serenity) {}    virtual void experience() const {        std::cout << "Drifting into a dream... " << content << "\n";
~/mrpotato/playing_with_a.js

Playing with a 🐶

I've created a fun jQuery function that models dog behavior, including zoomies, tail wags, and belly rubs. It's all based on a core "excitement level" metric.

function playWithDog($dog) {    // Dog's initial excitement level affects everything!    let excitementLevel = $dog.data('excitement') || 50;        // Dogs get more excited when you show them a toy    function showToy(toyType) {        const toyMultiplier = {            'ball': 2,            'frisbee': 1.8,            'stick': 1.3,            'squeakyToy': 2.5        };                excitementLevel *= toyMultiplier[toyType];