Skip to content

Instantly share code, notes, and snippets.

@brubrant
brubrant / basic_statistics.ipynb
Last active July 30, 2020 17:45 — forked from tabrez/basic_statistics.ipynb
basic_statistics.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brubrant
brubrant / RiskAdjustedReturnMetrics.py
Created November 17, 2021 19:56 — forked from StuartGordonReid/RiskAdjustedReturnMetrics.py
Measured of Risk-adjusted Return
import math
import numpy
import numpy.random as nrand
"""
Note - for some of the metrics the absolute value is returns. This is because if the risk (loss) is higher we want to
discount the expected excess return from the portfolio by a higher amount. Therefore risk should be positive.
"""
@brubrant
brubrant / obs-recording-toggle.py
Created June 24, 2024 21:04 — forked from kode54/obs-recording-toggle.py
OBS Recording Toggle, based on obs-wayland-shortcuts, but using obs-cli and not obs-cli-leafac.
#!/usr/bin/env python3
# Original Author: Andrew Shark
# Homepage: https://gitlab.com/AndrewShark/obs-wayland-shortcuts
# License: GPLv3
# Modified By: Christopher Snowhill
# This script is made for convenience. It is invoked by a logid gesture for MX Master mouse.