Skip to content

Instantly share code, notes, and snippets.

View dribnet's full-sized avatar

tom white dribnet

View GitHub Profile
@dribnet
dribnet / mpl_cfaces.py
Created July 20, 2017 11:48 — forked from aflaxman/mpl_cfaces.py
Chernoff Faces in Python with Matplotlib
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from numpy.random import rand
from numpy import pi, arctan
def cface(ax, x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18):
# x1 = height of upper face
# x2 = overlap of lower face
@dribnet
dribnet / .DS_Store
Created July 5, 2023 22:01 — forked from uwcc/.DS_Store
Creative Coding 2: Project 1_Clock
@dribnet
dribnet / spacy_intro.ipynb
Created July 25, 2017 22:26 — forked from aparrish/spacy_intro.ipynb
NLP Concepts with spaCy
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dribnet
dribnet / stablediffusionwalk.py
Last active August 16, 2022 03:16 — forked from karpathy/stablediffusionwalk.py
hacky stablediffusion code for generating videos
"""
draws many samples from a diffusion model by slerp'ing around
the noise space, and dumps frames to a directory. You can then
stitch up the frames with e.g.:
$ ffmpeg -r 10 -f image2 -s 512x512 -i out/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p test.mp4
THIS FILE IS HACKY AND NOT CONFIGURABLE READ THE CODE, MAKE EDITS TO PATHS AND SETTINGS YOU LIKE
THIS FILE IS HACKY AND NOT CONFIGURABLE READ THE CODE, MAKE EDITS TO PATHS AND SETTINGS YOU LIKE
THIS FILE IS HACKY AND NOT CONFIGURABLE READ THE CODE, MAKE EDITS TO PATHS AND SETTINGS YOU LIKE
@dribnet
dribnet / .block
Last active September 23, 2021 03:51 — forked from uwcc/.block
MDDN 342 2021 Assignment 3: Data Mappings
license: mit
@dribnet
dribnet / .block
Last active August 11, 2021 22:53 — forked from uwcc/.block
MDDN 342 2021 Assignment 2: Parameterised Space
license: mit
height: 540
@dribnet
dribnet / .block
Last active July 19, 2021 23:20 — forked from uwcc/.block
MDDN 342 2021 Assignment 1: Random Faces
.
@dribnet
dribnet / README.md
Last active June 12, 2021 19:24 — forked from mbostock/README.md
strokes version of quadtree

This example demonstrates accelerated two-dimensional filtering enabled by d3.geom.quadtree. A quadtree recursively subdivides square cells into four equal-sized subcells. Each leaf node of the quadtree contains a single point. If a given quadtree cell does not intersect the brush extent, then none of the points contained in that subtree can be selected, and thus do not need to be scanned. Above, orange indicates points that are scanned but not selected. Without a quadtree, all points would need to be scanned!

A fork and port of mike's js version (gist/block), programmed in clojurescript atop the incipient strokes library.

(Merge request? Use the repo version.)

@dribnet
dribnet / .block
Last active March 10, 2021 22:25 — forked from uwcc/.block
2021 MDDN341 Assignment 1: Time-based Media
license: mit
@dribnet
dribnet / .block
Last active October 18, 2020 21:50 — forked from uwcc/.block
2020 MDDN342 Assignment 3: Face Mappings
license: mit