Skip to content

Instantly share code, notes, and snippets.

@mpwoz
mpwoz / dabblet.css
Created February 17, 2012 23:30
Martin
/** Martin
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
color:white;
font-family:arial;
@mpwoz
mpwoz / dabblet.css
Created February 19, 2012 02:17
Martin
/** Martin
* The first commented line is your dabblet’s title
*/
background: #ffd;
background: -webkit-linear-gradient(45deg, #0a4, #09a);
min-height:100%;
color:white;
font-family:arial;
@mpwoz
mpwoz / setup.sh
Last active September 29, 2023 19:47
setup for a new linux machine
# Make sure we're up to date
apt-get -y update
apt-get -y dist-upgrade
# Some basic tools to get started
apt-get -y install vim-gtk build-essential
# Install and setup Git
apt-get -y install git
git config --global user.name "Martin Wozniewicz"
INTEREST_RATE = [5, 7]
ANNUAL_SAVINGS = [40, 50, 60]
YEARS = [10, 15, 20]
def calculate_total(interest, savings, years):
interest = 1. + interest / 100.
return sum([savings * (interest ** i) for i in range(years)])
for interest in INTEREST_RATE:
for savings in ANNUAL_SAVINGS:
#!/usr/bin/python
""" Calculate compounding interest on recurring expenses """
import locale
locale.setlocale(locale.LC_ALL, "en_US")
# User configured parameters
years = 15
interest = .05