Skip to content

Instantly share code, notes, and snippets.

@aduffey
aduffey / Chili.md
Last active March 27, 2024 14:18
Chili

Chili

Chile paste

  • 3-4 Tablespoons of oil
  • 2 Tablespoons pumpkin seeds
  • 1 Tablespoon sesame seeds
  • 2 Ancho Chiles (whole, dried)
  • 4 Guajillo Chiles (whole, dried)
@aduffey
aduffey / lines.py
Created December 23, 2023 03:47
CRT simulation work
from imageio.v3 import imwrite
import numpy as np
def cos_isotropic_spot(x, y, s):
"""Takes scalar x, scalar y, and vector s"""
return sqrt(s) * (0.5 + 0.5 * np.cos(np.pi * np.clip(np.divide(np.sqrt(x**2 + y**2), sqrt(s), out=np.zeros_like(s), where=horiz!=0), -1, 1)))
def line(x, y, s):