This is the Gist for Day 2 of the Intermediate Python for Finance Training in London, 29. November 2017
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> | |
<assemblyIdentity version="1.0.0.0" | |
processorArchitecture="X86" | |
name="Example_App.exe" | |
type="win32"/> | |
<description>elevate execution level</description> | |
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> | |
<security> | |
<requestedPrivileges> |
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
2018/08/20 22:16:08 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161 | |
2018/08/20 22:16:08 [INFO] Go runtime version: go1.10.1 | |
2018/08/20 22:16:08 [INFO] CLI args: []string{"C:\\terraform\\terraform.exe", "apply"} | |
2018/08/20 22:16:08 [DEBUG] Attempting to open CLI config file: C:\Users\mike\AppData\Roaming\terraform.rc | |
2018/08/20 22:16:08 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2018/08/20 22:16:08 [INFO] CLI command args: []string{"apply"} | |
2018/08/20 22:16:08 [INFO] command: empty terraform config, returning nil | |
2018/08/20 22:16:08 [DEBUG] command: no data state file found for backend config | |
2018/08/20 22:16:08 [DEBUG] New state was assigned lineage "e80c8334-caa0-becb-ab65-ca923bdd288b" | |
2018/08/20 22:16:08 [INFO] command: backend initialized: <nil> |
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
sudo apt-get -y update | |
sudo apt-get -y install software-properties-common | |
sudo add-apt-repository ppa:canonical-chromium-builds/stage | |
sudo apt-get -y update | |
sudo apt-get -y install chromium-browser |
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
apt-get -y update && apt-get -y upgrade | |
wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh | |
bash Anaconda3-5.3.1-Linux-x86_64.sh | |
apt-get -y install python3-pip gcc g++ | |
apt-get -y install npm nodejs | |
npm install -g configurable-http-proxy | |
pip3 install setuptools | |
pip3 install wheel | |
pip3 install --upgrade pip wheel | |
apt-get install python3.6-dev libevent-dev |
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
""" | |
Example of how calculations on the secp256k1 curve work. | |
secp256k1 is the name of the elliptic curve used by bitcoin | |
see http://bitcoin.stackexchange.com/questions/25382 | |
""" | |
p = 2**256 - 2**32 - 977 |
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 os | |
import pandas as pd | |
import datetime as dt | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
import ccxt | |
sns.set(style = 'ticks', context = 'talk') | |
plt.style.use("dark_background") |