These are the things I've written that are tagged "code"

stochastic

08 August 2014

“Simple functions for simulating Poisson Processes, Brownian motion, geometric Brownian motion, discrete/continuous-time Markov chains, and normal random variables” in Javascript.

Font-To-Width

31 March 2014

Font‑To‑Width (FTW!) is a script by Nick Sherman and Chris Lewis that takes advantage of large type families to fit pieces of text snugly within their containers. Can definitely see using this for some datavis stuff. There is some FOUT (Flash of unstyled text) to deal with though.

MicIO.js

24 March 2014

This is some crazy magicks and I love it: Use HTML5’s web audio API to create a hardware bus somewhat similar to how Square’s Credit Card readers works. I am abuzz with ideas for this right now and this is bad because I have actual work to do. (via Jesper)

glsl.js

18 February 2013

A WebGL subset focused on making 2D and 3D game visuals more efficient / maintainable. Don’t miss the examples. Requires a browser that supports WebGL, so the current released version of Safari is a no-go for now. Try Chrome.

Photobooth.js

06 December 2012

Accessing the user’s camera using only Javascript. No flash. Performance isn’t real-time on my old MacBook Pro, but it’s “good enough” for things like single shots (e.g. a Photo Booth). 5 years ago this would’ve been voodoo of a high caliber, now it’s one line of jQuery. (via Waxy)

Drawing with text

09 October 2012

Click & drag your mouse to “draw” with a given set of text. I could see this being used to make some really cool JS-based generative art. The demo explains it better than I can, and you really should check it out. This is a tool you should have in your utility belt.

node-etsy, An Etsy API Library for Node.js

10 August 2012

Something I needed for a little project of mine. I’ve been thinking a lot about how insanely good node.js is for doing simple tasks that I’d normally use a webserver (Apache) running a scripting language (PHP) and interfacing with an enterprise database (MySQL). If your server has to handle one, or even a handful of […]

Hello There

My name is Phil Nelson and I make beautiful things for a troubled world. I'm a designer / developer / writer / director / editor / narrator at Occipital.

Stuff I Make

More To See and Read

Browse the Archives

Hey. What're you doing all the way down here? You get lost? Just looking around? Cool. I like you.