This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import LRU from 'lru-cache'; | |
import { Request, Response } from 'express'; | |
import createEtag from 'etag'; | |
import prettyMs from 'pretty-ms'; | |
import { isPublicRoute } from './not-found-middleware'; | |
import { app } from '../'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
def get_expected_risk_for_system(system): | |
value_of_positions_proportion_capital = get_positions_as_proportion_of_capital(system) | |
instrument_returns = get_instrument_returns(system) | |
instrument_returns = instrument_returns.ffill().reindex(value_of_positions_proportion_capital.index) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/pre/55npm_install.sh": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
#!/usr/bin/env bash | |
# Custom npm install to work with Meteor/s build command | |
export USER=root | |
export HOME=/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script will convert a Meteor application into a Node.js application | |
# then deploy it to AWS Elastic Beanstalk. | |
# | |
# Run like `deploy_aws.sh my_eb_app my_eb_app-production`. | |
# | |
# That will deploy the Meteor application containing this script | |
# to the `my_eb_app-production` environment of the `my_eb_app` EB application. |