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

You Might Not Need JavaScript

11 October 2016

Examples of common UI elements and interactions with HTML and CSS alone. You Might Not Need JavaScript is doing the lord’s work. Maybe we don’t need to replace everything with some flavor of Javascript, huh? Maybe?


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.


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.


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)

JavaScript Garden

15 March 2013

JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language. It gives advice to avoid common mistakes and subtle bugs, as well as performance issues and bad practices, that non-expert JavaScript programmers may encounter on their endeavours into the depths of the language. This has been an […]


04 March 2013

A response to so many new frameworks keeping much of their data on the client-side: Lunr.js is a small, full-text search library for use in the browser. It indexes JSON documents and provides a simple search interface for retrieving documents that best match text queries.


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.


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)

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.