Skip to content

Instantly share code, notes, and snippets.

@ctralie
ctralie / GalliumOS on Edgar.markdown
Created April 19, 2024 17:09 — forked from stupidpupil/GalliumOS on Edgar.markdown
Guide to installing GalliumOS on an Acer Chromebook 14" (CB3-431) 'Edgar'
@ctralie
ctralie / SSMTorchGradientDescent.ipynb
Last active January 3, 2024 20:01
SSMTorchGradientDescent.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ctralie
ctralie / mergetree.py
Created July 26, 2022 17:44
Merge trees on time series with simplification
"""
Programmer: Chris Tralie
Purpose: To provide a basic ordered merge tree class for interval and circular domains,
along with methods to construct the merge tree from a time series, to plot it and
its associated persistence diagram, and to simplify the merge trees by persistence
"""
import numpy as np
import matplotlib.pyplot as plt
@ctralie
ctralie / AutoencoderTest.ipynb
Created January 23, 2022 17:50
Experiments with autoencoders of MNIST Data in pytorch, with a visualization of projection to 2D latent space
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ctralie
ctralie / Cantor.ipynb
Created October 21, 2021 14:35
Cantor Function Approximation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ctralie
ctralie / colormap.py
Created July 5, 2021 15:46
Colormaps
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from skimage import data
from skimage.color import rgb2gray
from colorspacious import cspace_converter
I = data.astronaut()
I = rgb2gray(I)
cmaps = ['gray', 'magma', 'jet', 'RdGy']
@ctralie
ctralie / VoronoiBrutAnim.py
Created April 16, 2021 02:46
Brute Force Voronoi Animation with Moving Sites in Matplotlib
import numpy as np
import matplotlib.pyplot as plt
from scipy.spatial import KDTree
# Generate some number of sites in
# the square [0, 1] x [0, 1]
np.random.seed(0)
n_sites = 20
sites = np.random.rand(n_sites, 2)
# Create random velocities
@ctralie
ctralie / SquareWave.ipynb
Created February 16, 2021 23:11
DFT of Time Shifting Square Wave
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.