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 | |
############################################################################## | |
# SHORTCUTS | |
############################################################################## | |
CTRL+A # move to beginning of line | |
CTRL+B # moves backward one character | |
CTRL+C # halts the current command | |
CTRL+D # deletes one character backward or logs out of current session, similar to exit |
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
*.ip | |
*.log |
title: "Portfolio Optimization & Rebalancing Tool" author: "John Houghton" #output: #html_document: #code_folding: hide #df_print: kable #number_sections: yes #theme: cosmo #toc: yes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
CERTIFICATE_DIR="/home/ubuntu/certificate" | |
JUPYTER_CONFIG_DIR="/home/ubuntu/.jupyter" | |
if [ ! -d "$CERTIFICATE_DIR" ]; then | |
mkdir $CERTIFICATE_DIR | |
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout "$CERTIFICATE_DIR/mykey.key" -out "$CERTIFICATE_DIR/mycert.pem" -batch | |
chown -R ubuntu $CERTIFICATE_DIR | |
fi |
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
# load some data | |
forecast_data <- structure(c("28", "42", "21", "23", "29", "15", " 8", " 4", " 2", | |
" 1", NA, NA, NA, NA, NA, "26", "39", "20", "22", "28", "14", | |
" 7", " 4", " 2", NA, NA, NA, NA, NA, "43", "65", "33", "36", | |
"45", "23", "12", NA, NA, NA, NA, NA, NA, NA, "58", "87", "44", | |
"48", "60", NA, NA, NA, NA, NA, NA, NA, NA, "37", "56", "28", | |
"31", NA, NA, NA, NA, NA, NA, NA, NA, NA, "28", "42", "21", NA, | |
NA, NA, NA, NA, NA, NA, NA, NA, NA, "19", "29", NA, NA, NA, NA, | |
NA, NA, NA, NA, NA, NA, NA, "24"), .Dim = c(12L, 8L), .Dimnames = list( | |
c("Wk.1", "Wk.2", "Wk.3", "Wk.4", "Wk.5", "Wk.6", "Wk.7", |