Skip to content

Instantly share code, notes, and snippets.

View mattf1n's full-sized avatar

Matthew Finlayson mattf1n

View GitHub Profile
import matplotlib.pyplot as plt
import numpy as np
import torch
from matplotlib import animation
from simplex import Composition
import operator
dim = 4
n = 20
logits = torch.tensor(
@mattf1n
mattf1n / Makefile
Last active October 21, 2023 09:11
Take a photo of earth from space
all: earth.png
earth.png: out/color.png
convert $< \
-resize 2972x1820\> \
-size 3072x1920 xc:black +swap \
-gravity center \
-composite $@
out/color.png: full_disk.py data/full_disk.nc