Skip to content

Instantly share code, notes, and snippets.

View ppsreejith's full-sized avatar
🗒️
Learning

Sreejith Pp ppsreejith

🗒️
Learning
View GitHub Profile
["background",
"tench",
"goldfish",
"great white shark",
"tiger shark",
"hammerhead",
"electric ray",
"stingray",
"cock",
"hen",
@ppsreejith
ppsreejith / spend-calculator.py
Created September 10, 2019 08:08
To calculate spending and burn rate over a large period of time
G_CONSTANT_AMOUNT = 400000.0 # Minimum bank balance kept or liquid cash
G_INITIAL_INVESTMENT = 150000.0 # Existing investments
G_MONTHLY_INVESTMENT = 70000.0 # How much you plan to invest monthly
G_RETURN_RATE = 1.11 ** (1.0/12.0) # compound annual return rate on investment (maybe last 5 years?)
G_INFLATION_RATE = 1.08 ** (1.0/12.0) # compound annual inflation rate (maybe last 10 years?)
G_CURRENT_SPENDING = 80000.0 # Current (and planned future) monthly spending
G_LEEWAY_MONTHS = 3.0 # Number of months you need to keep spare (maybe to look for a new job etc)
def compound(principal, investment, rate, time):
"Compound interest calculator"
@ppsreejith
ppsreejith / Contract.md
Created January 12, 2024 10:00
Random D&D Contract

Adventurer's Contract: Operation Emerald Peak

Issued By: The Eldarwood Dominion Council

Objective: Secure and Hold Emerald's Peak

Context

The Eldarwood Dominion is in urgent need of securing the mining routes through the Oreheart Mountains for the establishment of a critical railroad network. Our efforts have been continuously thwarted by the formidable Bloodtusk Orc Tribe, who have entrenched themselves at Emerald's Peak. This location has proven to be a strategic military stronghold, and all attempts at negotiation and previous military efforts have failed.

Primary Tasks