Skip to content

Instantly share code, notes, and snippets.

View lynsei's full-sized avatar
:octocat:
Huzzah!

Lynsei lynsei

:octocat:
Huzzah!
View GitHub Profile
from scipy.stats import ks_2samp
# Run a montecarlo simulation over 1,000 turns to get distribution of KS scores for each
def KS_MonteCarlo(euro_league, n_teams, n_seasons):
simulation = np.arange(1,1001,1)
ks_run =[]
for run in simulation:
flat20 = perfect_competition(n_teams, n_seasons).T.to_numpy().flatten()
ks_run.append(ks_2samp(euro_league.Pts, flat20).statistic)
@lynsei
lynsei / keylesstrust.author.pub
Last active January 16, 2022 16:58
// tag: #czms #cryptomint #User=lynsei
-----CRYPTOMINT-----
// ;
// ED.
// E#Wi
// i j. E###G.
// LE :;;;;;;;;;;;;;. EW, E#fD#W;
// L#E jWWWWWWWW###L E##j E#t t##L
// G#W. ,W#f E###D. E#t .E#K,
// D#K. ,##f E#jG#W; E#t j##f
// E#K. i##j E#t t##f E#t :E#K:
@lynsei
lynsei / docker-compose.yml
Last active March 15, 2022 06:23
[prefecthq] docker-compose.yml for launching it #use-case 6 automation!
version: "3.5"
# Features driving version requirement
# - networks.name 3.5
# - healthcheck.start_period 2.3
# - healthcheck 2.1
services:
# PostgreSQL: the backing database which stores flow metadata
postgres:
image: "postgres:14" # JSONB Subscripting is avail. in PG14!
@lynsei
lynsei / Azure-aks-kubectl.md
Created March 24, 2025 17:43
Setup kubectl credentials for AKS

Configuring kubectl to Access AKS Clusters

This guide will help you configure kubectl to access Azure Kubernetes Service (AKS) clusters, including setting up contexts and testing local configurations.

Prerequisites

Make sure you have the following installed:

  • Azure CLI (az): To manage Azure resources.
  • kubectl: To interact with Kubernetes clusters.