Skip to content

Instantly share code, notes, and snippets.

View snapo's full-sized avatar

snapo

View GitHub Profile
@snapo
snapo / Example_App.exe.manifest
Created March 21, 2018 10:18 — forked from leeramsay/PSADT-Cheatsheet.ps1
PSADT snippits/cheatsheet
<?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>
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>
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
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

Intermediate Python for Finance Training

This is the Gist for Day 2 of the Intermediate Python for Finance Training in London, 29. November 2017

Agenda

Module 3 — pandas

FXCM Webinar

Algo Trading: REST API & Python Wrapper

Tick Data, Historical Data, Real-Time Data, Backtesting, Orders

Dr. Yves J. Hilpisch | The Python Quants GmbH

Online, 04. April 2018

Executive Program in Algorithmic Trading (QuantInsti)

Python Sessions by Dr. Yves J. Hilpisch | The Python Quants GmbH

Online, 27. & 28. January 2018

Intermediate Python for Finance Training

This is the Gist for Day 1 of the Intermediate Python for Finance Training in London, 28. November 2017

Agenda

Module 1 — Python

@snapo
snapo / curve_example.py
Last active January 22, 2020 12:58 — forked from nlitsme/curve_example.py
example of bitcoin curve calculations in python
"""
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
@snapo
snapo / btc_gold_correlation.py
Created January 22, 2020 13:25 — forked from mostlyinteresting/btc_gold_correlation.py
Rolling 30 day correlation of BTC with gold
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")