This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sqlfluff] | |
# if using dbt | |
templater = jinja | |
dialect = snowflake | |
[sqlfluff:rules] | |
max_line_length = 80 | |
indent_unit = tab | |
tab_space_size = 4 | |
capitalization_policy = lower |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |