Skip to content

Instantly share code, notes, and snippets.

View aliddell's full-sized avatar
💭
feelin' fine

Alan Liddell aliddell

💭
feelin' fine
  • CZI
  • Columbus, OH
  • 16:14 (UTC -04:00)
View GitHub Profile
@aliddell
aliddell / Acquire demo.ipynb
Last active August 8, 2023 20:32
Demonstration of Acquire in a Jupyter notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aliddell
aliddell / lockup.m
Created June 12, 2019 13:40
define a matrix that locks up `rank`
This file has been truncated, but you can view the full file.
m = [-52.5890121459961, -12.7444114685059, 38.8191909790039, -127.590621948242, -279.937622070313, -357.283020019531, -153.372421264648, 123.195983886719, 165.384384155273, 153.665390014648, 90.3827972412109, 81.0075836181641, 71.6323852539063, 3.66218948364258, 36.4753913879395, 104.445587158203, 99.7579956054688, 83.3513946533203, -12.7444114685059, -36.1824111938477, -12.7444114685059, -38.5262145996094, 22.4125900268555, 1.31838893890381, 17.7249889373779, -5.71301126480103, -5.71301126480103, 15.3811893463135, 31.7877883911133, 20.068790435791, -59.6204109191895, -5.71301126480103, 3.95516109466553, -28.858039855957, -26.5142402648926, 1.61136150360107, -12.4514389038086, -169.486053466797, -176.517440795898, -120.266242980957, 3.95516109466553, 53.1749610900879, 22.7055625915527, 53.1749610900879, 85.9881591796875, 118.801361083984, 104.738563537598, 15.6741609573364, 20.3617630004883, 60.2063636779785, 27.3931617736816, -40.5770416259766, -12.4514389038086, 6.29896068572998, -47.6084403991699, -56.9836
@aliddell
aliddell / large_objects_mwe.py
Created June 11, 2019 17:27
MWE for pythreejs issue
import numpy as np
from pythreejs import BufferAttribute, BufferGeometry, Mesh, MeshPhongMaterial, Scene
data = np.load("mwe_data.npz") # https://fil.email/MCsqYccY
# large object
large_pos = data["large_pos"]
large_norm = data["large_norm"]
assert large_pos.size == large_norm.size == 1814508