Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
Net Liquidity formula:
Net Liquidity = Federal Reserve Balance sheet - Treasury General Account - Reverse Repo
Twitter thread by Max Anderson:
terraform config for MWAA
https://github.com/hashicorp/terraform-provider-aws/releases/tag/v3.36.0
terraform plan -var-file=vars.tfvars
terraform apply -var-file=vars.tfvars
wrangled.csvExample usage:
| language: python | |
| matrix: | |
| # This will launch a separate build for each Python version you add | |
| # Feel free to add extra environment variables as needed | |
| include: | |
| - python: 3.5 | |
| - python: 3.6 | |
| before_install: |
| title | subtitle | author | date | source |
|---|---|---|---|---|
Docker Compose Cheatsheet |
Quick reference for Docker Compose commands and config files |
Jon LaBelle |
April 7, 2019 |
| import numpy as np | |
| from sklearn import linear_model | |
| import pandas as pd | |
| import requests | |
| from sklearn.feature_extraction import DictVectorizer | |
| team_id_list = ['1610612737','1610612738','1610612751','1610612766','1610612741','1610612739','1610612742','1610612743','1610612765','1610612744','1610612745','1610612754','1610612746','1610612747','1610612763','1610612748','1610612749','1610612750','1610612740','1610612752','1610612760','1610612753','1610612755','1610612756','1610612757','1610612758','1610612759','1610612761','1610612762','1610612764'] | |
| headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36'} |
| #!/usr/bin/env python3 | |
| import re | |
| import os | |
| import subprocess | |
| import statistics | |
| class NoQueryPlanOutput(Exception): | |
| pass |
| --- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
| --- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
| -- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
| ------------ | |
| -- Basics -- | |
| ------------ | |
| -- Get indexes of tables |
| # This file has to be saved in your Jupyter config directory (found by running | |
| # jupyter --config-dir | |
| # but usually C:\Users\<username>\.jupyter\jupyter_notebook_config.py on Windows | |
| def scrub_output_pre_save(model, **kwargs): | |
| """scrub output before saving notebooks""" | |
| # only run on notebooks | |
| if model['type'] != 'notebook': | |
| return | |
| # only run on nbformat v4 |