blocks by duhaime

Rails ActiveRecord JSON cheatsheet

Communication between supercollider and python via osc. Just run `python osc_music.py` and the `supercollider_music`

DBPedia

MIDI

get_wiki_people.py

Chopin Tokens

Download WikiPedia People Data

Phyllotaxis in Python

text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)

Ingest EPO SQL data

turing

Mido port streaming

Python boids

Flask and Starlette Servers for GPT-2

Fetch Reddit Pushshift

play midi file

Goedel Escher Bach plaintext

Fetch from localhost

0f7c3bcb58b5b8b70ccd

Rectangle Packing

Download Unsplash Images

dates to stacked barchart

minimal three.js scene

Zoom to cursor

Points Scale Testing

hdbscan clustering parameters

Ruscha Experiments

Drive

seed data 2d

Separating points on a map

Firebase Cloud Function

minhash

Simple ASCII Encoding

Posenet in the browser

gunzip js gzip

Keras Image to Vector

smtp python

Low-Poly Scene (Three.js)

plot-bunnies.ipynb

Floyd-Steinberg Dithering

Image to Points: Convert an input image to a series of discrete, uniform-sized points using simple statistical sampling

Load Many Fonts

Download Yale Digital Collection Images

Wordmap

random dark color - javascript

Scroll Into View (via SO 17722497)

mongodb.conf default mongo mongodb config file

Visualizing Vicon Streams

stdin stream

Signal Listener

Flask + Redis + background process in while loop

Simple Flask Server

Find KNN for Gensim Model

three.js unproject unprojection event to world coords

Rapid Prototyping Grants and Project Management in Yale's DHLab

MNIST 3D (Three.js)

Draw a Neural Network

Extracting illustrations with picsnip

Minimal Frame Buffer Object (Three.js)

Image Pixels (Three.js)

Dance Grid

sqlite.py

build-tree-on-disk.py

watch all events

Minimal React Router without Babel

raw_vae

Interactive Bézier curves with Python using just matplotlib.

word-to-viz

Image Histograms

Three.js LineSegments with RawShaderMaterial

1m images 60fps

Circular Vortex Emergence

New York Times Reader

Extract Voynich Words

dance: autoencoder + mdn

Frame-level diffs

Dance Visualization

CGAN

Vanilla GAN.ipynb

Create arbitrarily nested dictionaries in Python

Girl tonight we're gonna AJAX like it's 1999

glitchy

Particle Dance

Simple Firebase Authentication

Firebase Datastore (Palindromes)

Minimal Single Page React Boilerplate

Minimal Jekyll CSS + JS Combination and Minification

Three.js Frame Buffer

Dance Autoencoders

Dancer Grid

Warehouse Dance

Minimal Multiple File Uploads with Vue + Node or Flask Server

HELLO WORLD

detect_frame_pose.py

BigGAN.ipynb

Sample From 2D Latent Space (Celeb-A)

Save Keras model for tensorflow.js

Sample From 2D Latent Space (MNIST)

IP Route forwarding

Dance Controls (Three.js)

Show cardinal directions in three.js

Three.js: Custom instance sizes

Engraver Map

Fisher-Yates Shuffle

rotate n

Animated Dithering (2D Canvas)

Particle Wave Entrance (Three.js)

Image Depth Illusion (Three.js)

Pixelate Image

Visualizing L1 Loss

Simple Dance

Dancing Trails

Dancing Lines

Frederick Douglass Face Warp

Gif

Simple Facial Keypoint Detection with Python

Tiny Dancer

GLTF Recursive Geometry Hunt

Linear Regression Gradient Descent

Gradient Descent Function with Two Variables

Three Dimensional Function Plotter

Minimal Three.js boilerplate

Gradient Descent

K-Nearest Neighbors

K-D Tree Nearest Neighbors (k-NN)

Simple Feed Forward Network in Numpy

Constrained Lloyd Iteration

Unconstrained Lloyd Iteration

Lloyd Iteration Example

Fetch Metadata for Yale ID

lloyd's algorithm

Valid Matplotlib Backend Options

D3 Map Small Multiples

LSH Images

Map Timeline

Isolation Forests

Cluster Words Based on Similarity with Agglomerative Clustering

Milky Way

visualizing map distortion d3v4

GeoJson Mapping (D3)

Get Latin Library Texts

Text Matches Browser Concept

Point Sprites + GPU Picking Template

Three.js Points Boilerplate

Python Selenium Headless Chrome OSX

GPU Picking (Three.js)

Heightmap

Textured Point Sprites

Sample images

Girl tonight we're gonna AJAX like it's 1999

Three.js Points + RawShaderMaterial

Python: Get current timestamp

JDK 1.8 + Maven + Tomcat + Node.js + MongoDB on Amazon Linux

Install Maven with Yum on Amazon Linux

Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

axios.js

Lambda auth

k-merge : given n files with sorted keys and their values, identify all instances of each key quickly

Three.js Boilerplate

Find image reprints

Group strings into sublists of matching string indices

skip_vectorized_images.py

hpc-minhash

Minimal Heroku / Flask App

Install Mongo on RedHat from Source

Three.js points mesh + ShaderMaterial

Instanced Attributes (Three.js)

Get Max Supported WebGL Texture Size on Host Device

Three.js: Indexed Buffer Geometry with Texture and Custom Shader Attributes

Three.js text

Procedure for cropping image from page scan

Similar Image Browser

LSHForest Sample

Nest files into subdirectories for AFS filesystems

Internet Use Gif

Simple Scatterplots with C3.js - YaleHack 2018

Multidimensional sliding window in numpy

Compare image similarity in Python using Structural Similarity, Pixel Comparisons, Wasserstein Distance (Earth Mover's Distance), and SIFT

Map with Georectified Video Asset

Gradual pixelation

Duotoning

Mapbox GL 3d data demo

Path in a map, animated with scroll

Minhashing

Minhash.js

Sliding Window

Folia XML Sample

Build a Gender Classifier with Python

Vermeer (Three.js)

Supercompute intertext

Loading an OBJ file in Three.js

Tanks

Buffalo Controller

Moonwalk

Hokusai (Three.js)

Tesselating Pattern GLSL

GLSL Points

Static Word Tree (D3)

GLSL Prism

gl-matrix.js 1.3.2

The Simplest GLSL Scene

Cannon + Three.js Boilerplate

Bloom Filter in Python

Measure Python Object Size

Random Forest

Aeroplane Over the Sea [2]

Aeroplane Over the Sea [1]

Install Redis on Amazon Linux

Set up Wordpress + LAMP on Amazon Ec2

Cluster two sequences

Fox Chase

Convert a Cannon.js body to a THREE.js mesh

Three.js Image Overlay

Trump Cannon

Falling Spheres

Set camera position from matrix4 of object, ignoring rotations

collisions.js

Follow sphere

Julia Sets

Uniform spiral

Vector field flow visualization

Canvas Random Motion

GLSL Static

Loading a blender object in Three.js

Simple Gradient Descent

1 hidden layer + output layer

Plot decision boundaries

A Neural Network with N hidden Nodes in < 100 LOC

Neural Net Classifier with 5 hidden neurons from scratch

Simple Linear Classifier

Simple SVM in JavaScript

Install OpenCV3 on OSX

Find dominant image colors for all images in each input directory

Using canvas textures in three.js

Convert an mp4 to a series of jpg files, one per frame

Color thief top colors

Find the dominant colors in an image - fast!

What forces layout/reflow. The comprehensive list.

Serve gzipped assets from S3

clear DNS cache on OSX

Big list of http static server one-liners

Remove page css

Non-Negative Matrix Factorization for Topic Modeling

Determine which pages in a static file app contain a css selector

minhash

Install chromedriver on Ubuntu

Bi-directional hierarchical sankey diagram

Install Spacy

Sample Jekyll JSON Feed

Sankey Transitions

Visualize NER Counts

Count CoreNLP Entities

Install FFMPEG on OS X with HomeBrew to convert Mp4 to WebM

Directed Graph Arrowhead

K-Means as a force

Kinetoscope

Redis-backed Minhash

Batch process files with ABBYY FineReader using AppleScript

Javascript from command line

HTTP Cache Busters

plot-rgba-3d.py

minhash.py

port forwarding

get-osm-ids.py

Sge individual jobs

array_job.sh

Image processing setup

2D Canvas network (D3.js)

Detect if the browser is Chrome

Frames per second, smoothed

Save multipart upload to Google Drive

Post data with XHR

Get all leaves in tree

Setting up a virtualenv inside the tcsh shell on RHEL without root

20K Node Graph Layout (Three.js)

Cat Field (Three.js)

London Publishers (Tangram.js)

Image Transitions (D3.js)

Discrete Scatterplot (D3.js)

Benchmark

00fd577aa9fc87e90515

Access Db to tsv on OSX

Jekyll & Liquid Cheatsheet

Brew install go on osx

Steam chart with buttons and tooltip (D3.js)

Image TSNE Projections on canvas

1d6d5a8dc77c86128fcc

London Printers, 1473-1800 (Tangram.js)

San Juan Island - Interactivity Demo (Tangram.js)

Cache node positions

Carto data with Leaflet Interactions Sample

Simple payments with Node + Stripe

cmeans_cluster.py

c3dead2a1bbcbfe601f9

go.sh

097278c67b68d46e9209

f5fe05c43c08e919d6a2

Resize monochromatic splash page to required ios sizes

Visual instructions how to enable Google Maps on IOS using react-native-maps

b7f3876bc2cbe27e9fd4

Image to Vec

Recursively find friends of friends

Fetch Russian Poetry

Yale CAS Auth

Build PhantomJS on Amazon Linux

Installing Maven and CouchDB-Lucene on Ubuntu 14.04

Installing CouchDB 1.6.1 and Apache2 on Ubuntu 14.04

Project points from input 2d space to output 2d space

Matrix Transform Gist: calculates the X matrix for AX = B linear algebra equation

Slightly modified compiled coffeescript from this codepen: http://codepen.io/fta/pen/ifnqH. Paste into console on a page that has jQuery to load the two dependent libraries (jquery-ui and numericjs). Then call makeTransformable('#selector-name') to make that element WYSIWYG editable. Use inspector to get the CSS for the transforms.

Yale CAS and user info with Rails (after security "upgrade" on LDAP)

Cluster vectors with K-Means

f782d6671aa2ec8ac543

8643692

5876255

5868981