Skip to content

Instantly share code, notes, and snippets.

View ethanfuerst's full-sized avatar
📈

Ethan Fuerst ethanfuerst

📈
View GitHub Profile
@ethanfuerst
ethanfuerst / gift_giving_list_creation.py
Created September 25, 2023 02:48
Brute forcing my way through gift exchanges
import pandas as pd
import random
random.seed(0)
# giver, family, recipient_year1, ... ,recipient_yearN
df = pd.read_csv("list.csv")
def in_same_family(pair):
@ethanfuerst
ethanfuerst / .sqlfluff
Created September 6, 2023 18:54
My preferred .sqlfluff rules
[sqlfluff]
# if using dbt
templater = jinja
dialect = snowflake
[sqlfluff:rules]
max_line_length = 80
indent_unit = tab
tab_space_size = 4
capitalization_policy = lower
@ethanfuerst
ethanfuerst / prime_background.py
Last active November 7, 2022 14:49
Prime Number Background Generator
from sympy import sieve
from PIL import Image, ImageDraw
# I like to make SCREEN_WIDTH = BOXES_WIDE. This will make each box 1 pixel.
SCREEN_WIDTH = 1000
SCREEN_HEIGHT = 2400
BOXES_WIDE = 1000
box_size = SCREEN_WIDTH // BOXES_WIDE
BOXES_LONG = 2400 // box_size