Skip to content

Instantly share code, notes, and snippets.

View jaymon0703's full-sized avatar

Jasen Mackie jaymon0703

View GitHub Profile
@jaymon0703
jaymon0703 / danglevision_terms.txt
Created February 16, 2026 20:50
DangleVision - Terms
Terms of Service – DangleVision
**Last updated:** [16 February 2026]
## 1. Acceptance
By using the DangleVision website and/or app, you agree to these terms.
## 2. Use of the service
DangleVision is provided for personal, non-commercial hockey training. You may not redistribute, resell, or use it for commercial purposes without permission.
@jaymon0703
jaymon0703 / PRIVACY_POLICY.md
Last active June 23, 2026 12:49
DangleVision Privacy Policy

Privacy Policy for DangleVision

Last updated: June 22, 2026

Introduction

DangleVision ("we", "our", or "us") is committed to protecting your privacy. This Privacy Policy explains how we handle information when you use our mobile application DangleVision (the "App"), available on Google Play and Apple App Store / TestFlight under the name DangleVision.

Information We Collect

@jaymon0703
jaymon0703 / baseball-dashboard-examples.py
Last active December 29, 2025 17:16
Code examples for Baseball Dashboard tutorial
"""
Baseball Dashboard - Complete Code Examples
For embedding in WordPress article via GitHub Gist
"""
# ============================================================================
# EXAMPLE 1: Testing pybaseball
# ============================================================================
import pybaseball as pyb
@jaymon0703
jaymon0703 / HRP.py
Last active December 17, 2022 10:59
Hierarchical Risk Parity implementation in Python
# Python 3 code
import matplotlib.pyplot as mpl
import scipy.cluster.hierarchy as sch,random
import numpy as np
import pandas as pd
# Now, take corMat and covMat generated from R, input into Marcos' Python, and check output is the same...
col_list = ["IGV.Close", "TLT.Close", "IAU.Close", "IYR.Close"]
corr = pd.read_csv("corMat_23072021.csv", usecols=col_list)
@jaymon0703
jaymon0703 / HRP.R
Last active August 28, 2021 21:54
Hierarchical Risk Parity implementation in R
# R code
corMat <- read.csv("corMat_23072021.csv")[,-1]
covMat <- read.csv("covMat_23072021.csv")[,-1]
clustOrder <- hclust(dist(corMat), method = 'single')$order
clustOrder
# Plot Dendogram for some visualization of the order
clust <- hclust(dist(corMat), method = 'single')
@jaymon0703
jaymon0703 / slack-notify-build.yml
Last active June 17, 2021 20:05
A YAML file for running an R-CMD-check on Ubuntu-latest using the rcmdcheck package and notifying Slack
name: R-CMD-check
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
env:
---
title: "Jane_Street_Kaggle"
author: "Jasen Mackie"
date: "18/12/2020"
output: html_document
---
```{r setup, include=FALSE}
require(data.table)
require(ggplot2)
@jaymon0703
jaymon0703 / macd_sig_yahoo.R
Created July 13, 2020 01:20
macd_sig fun - silly maybe not so silly strategy
# Simple MACD signal strategy
#
# blotter v 0.10.0
# quantstrat v 0.9.1739
# FinancialInstrument v 1.2.0
# Rblpapi v 0.3.4
#
#
# Author: Jasen
###############################################################################
@jaymon0703
jaymon0703 / quantstrat_test.ipynb
Created May 30, 2020 01:15
Running an R package's (quantstrat) demo in a Jupyter notebook using a Python3 Kernel
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaymon0703
jaymon0703 / Bitcoin.cpp
Created October 8, 2018 07:49
Satoshi Nakamoto's C code from the Bitcoin whitepaper for determining an attacker on the network's probability of success
#include "math.h"
#include "stdio.h"
double AttackerSuccessProbability(double q, int z)
{
double p = 1.0 - q;
double lambda = z * (q / p);
double sum = 1.0;
int i;
int k;