hanhanhan

Fakebus

2017

A simple mockup of a mobile-friendly bus scheduler. There's a vanilla javascript client using websockets, and bundled with webpack. It consumes an API I built with Flask.

Unity API

2017

Django based API (using the Django REST Framework library) for consumption by a Unity-based game app.

With tests.

Deliquescent

2016

Click and drag. Not mobile touch friendly.

A variation on Tiffany Rayside's Deliquescent. I completely refactored her code as a learning exercise, and made color a function of displacement.

I also did a post explaining the math behind the motion.

Rattle

2016

Click and drag the beads. Not mobile touch friendly.

I started by looking at this Tearable Cloth example, made it 1D, did not make it tearable, and changed the constraints. So really, it's terrible cloth.

Metabolism Plot

2016

Trying out bokeh.

Resting metabolism rate plotted using a user-selected equation and parameters. Parameters are equation-dependent. Playing with the Bokeh library for data visualization.

Robot R Kelly

2016

My first server based site. It included a Flask site, database, a server I set up on Digital Ocean, HTTPS, nginx, changing around some systemd settings, and a cron job.

Inspired by a challenge from this robotics engineer, Daniel Schiffman's explanation of Markov chains, and enabled by the beautiful Markovify library.

He's on Twitter too.

1D Cellular Automata

2015

My first javascript program.

Choose your ruleset, click tiles to flip their value, and see what happens next. Daniel Shiffman's wonderful Nature of Code was my starting point. The first javascript toy I built.

Flyaway

2015

The fly has a happy, random flight path until needs to evade your mouse at 90° angles. Inspired by (and sprites adapted from) research described in National Geographic.

Pinkwater Scrape

2015

My first Python program.

Children's author Daniel Pinkwater posted chapter-by-chapter audiobooks of him reading his classics like Borgel, Lizard Music, and Fat Men from Outer Space free -- donation encouraged.

It's just awkward to click through the site and download each file individually. This script gets, organizes, and labels the files so your mp3 player will see author, title, and genre.

© 2020