Coder Social home page Coder Social logo

pookleblinky / lifescripts Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 2.0 156 KB

Automating various decisions stochastically, starting with my current coin-based intermittent fasting and dice-based kettlebell.

Racket 100.00%
lifestyle lifehacks fitness diet stochastic-processes markov-decision-processes decision-making

lifescripts's Introduction

So I have been doing stochastic intermittent fasting for a while, and recently started doing stochastic cardio.

Coinfasting: flip a coin in the morning. Heads eat, tails fast. Over 7 days the expected value is 3.5, identical to a scheduled ADF. The randomness makes it easier to calibrate on the right number of calories: you can't just binge because the next few days may also be heads, and you can't do too much restriction because the next few days may also be tails.

Coin cardio: 20 minutes cycling every morning. Heads days, an extra 30 minutes cycling in the afternoon. 140 minutes baseline, which is the minimum suggested dose, averages to 245 minutes, maximum 350 minutes. 450 minutes is the maximum suggested dose of cardio beyond which diminishing returns kick in (https://well.blogs.nytimes.com/2015/04/15/the-right-dose-of-exercise-for-a-longer-life/).

Dice Kettlebell: What I had been doing was: roll 2d6, multiply by a number. Do that many swings. I decided to simplify this a bit by just increasing the multiplier and rolling one die.

Basically: I am enjoying the hell out of adding all this randomness to my life. I want to add more, hence this project.

I want to automate this stuff and make it easy to extend flipism to other parts of my life.

What I've been doing is recording the day's results of the coinflip and dice roll in a pinned Keep note. Note to self: check if Keep has an API that I can use to send stuff to from racket.

I had originally envisioned simple decision scripts, some depending on the decisions of the last week. Drink some water? How many kettlebell swings should I do today? etc. For some reason I am now making an RPG. There's a statsheet. I'm gonna go with the flow and see where it ends up.

Check out index.md to see what I'm already working on.

Note: I do not believe in adding UI. I prefer building my own UI on the fly, and view even the existence of UI as too opinionated for my tastes. Do not expect user friendliness.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

lifescripts's People

Contributors

pookleblinky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lifescripts's Issues

Skills versus stats

Scripts such as gripper, hydrate, etc perform a skillcheck based on tertiary stats such as Laziness and Thirst.

How should skills be implemented?

Inconsistent methods

cussout.rkt works differently than engagetroll, sometimes the result is negated for success and other times it's taken straight. It's rather muddled.

Make it all work consistently, following a single standard.

Add task recipes

The ability to string together several task lists and reuse them; "prepare for holiday" "prepare for guests" etc.

Cleaning.rkt doesn't track anything

Right now, it just spits out a random task that the user has to manually edit into a list. It doesn't even attempt to track whether it is done, cross it off, etc.

Is this intentional, or due to laziness and incompetence? Yes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.