- ages are in years
- contribution, and savings are in dollars
- avg_annual_return is a ratio, so 1.07 is a 7% annual return
let's say I'm 25 years old, I am going to contribute $2000/yr in bonds (~5% return), and I've already invested $5700 in bonds
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Timo Kissing http://kissing.name | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| # coding=UTF-8 | |
| from __future__ import division | |
| import nltk | |
| from collections import Counter | |
| # This is a simple tool for adding automatic hashtags into an article title | |
| # Created by Shlomi Babluki | |
| # Sep, 2013 |
| (function(global) { | |
| var silpUrl = '//s3-eu-west-1.amazonaws.com/silp.shootitlive.com/js/silp.min.js'; | |
| // Globals | |
| if(!global.Silp) { global.Silp = {}; }; | |
| var Silp = global.Silp; | |
| // To keep track of which embeds we have already processed | |
| if(!Silp.foundEls) Silp.foundEls = []; |
| /* | |
| MAKE the whole block actionable with CSS only. | |
| <div id="block" title="read more about ..."> | |
| <h3><a href="...">Some title here</a></h3> | |
| <p>bla bla bla .... bla!</p> | |
| </div> | |
| */ |
| /* Abstract event binding | |
| Example: | |
| var MyEventEmitter = function(){}; | |
| MyEventEmitter.prototype = new AbstractEventsDispatcher; | |
| var emitter = new MyEventEmitter(); | |
| // Bind to single event | |
| emitter.bind('foo_event', function(data){ alert(data)} ); |
| # This is an incomplete implementation. | |
| module MongoMapper | |
| module NestedAttributes | |
| def self.included(base) | |
| base.extend(ClassMethods) | |
| base.send :include, InstanceMethods | |
| end | |
| module ClassMethods | |
| def accepts_nested_attributes_for(*attr_names) |
| module ActiveRecord::NestedAttributes | |
| module ClassMethods | |
| def accepts_nested_attributes_for(*attr_names) | |
| options = { :allow_destroy => false, :update_only => false } | |
| options.update(attr_names.extract_options!) | |
| # Modified stuff | |
| #options.assert_valid_keys(:allow_destroy, :reject_if, :limit, :update_only) | |
| options.assert_valid_keys(:allow_destroy, :reject_if, :limit, :update_only, :allow_existing) |