Skip to content

Instantly share code, notes, and snippets.

View erlenstar's full-sized avatar

Jeff Zerger erlenstar

  • Phykos, PBC
  • Pacifica, CA
View GitHub Profile
A good commit message looks like this:
Header line: explaining the commit in one line
Body of commit message is a few lines of text, explaining things
in more detail, possibly giving some background about the issue
being fixed, etc etc.
The body of the commit message can be several paragraphs, and
please do proper word-wrap and keep columns shorter than about
@erlenstar
erlenstar / .block
Created October 17, 2016 23:10 — forked from mbostock/.block
Delaunay Force Mesh II
license: gpl-3.0
@erlenstar
erlenstar / .block
Created October 17, 2016 20:07 — forked from mbostock/.block
Stereographic
license: gpl-3.0
@erlenstar
erlenstar / .block
Created May 4, 2016 20:58 — forked from mbostock/.block
Nest Treemap
license: gpl-3.0
height: 1060
@erlenstar
erlenstar / README.md
Last active August 29, 2015 14:09 — forked from mbostock/.block

This chart shows the path of the Sun in the sky today based on your current location. The red dot represents the current apparent position of the Sun in terms of azimuth and elevation.

The outer black circle represents the horizon, where the elevation of the Sun is 0°. If the Sun is outside this circle, it is below the horizon. (This means it’s dark outside, though note that some definitions of twilight extend as far as 18° below the horizon.) Where the path intersects the horizon determines sunrise and sunset. The inner concentric circles represent higher solar elevations.

The radiating lines of the graticule represent azimuth. For example, 0° azimuth means that the Sun is due North of your current location. The azimuth tells you the direction of shadows cast by the Sun, while the elevation determines their length.

Curves drawn by randomly placing actors on the canvas, and walking them in a direction determined by the perlin noise function at their location. The continuity of the underlying noise function causes paths to converge together.

GENERATED_FILES = \
unemployment.tsv
.PHONY: all clean
all: $(GENERATED_FILES)
clean:
rm -rf -- $(GENERATED_FILES)
@erlenstar
erlenstar / README.md
Last active January 8, 2020 22:29 — forked from milroc/README.md
Atrribute Data Binding for Real-Time Data

Simulated Real-Time System

A simple example to demonstrate a concept to display real-time data using element attributes to bind to incoming data; from a websocket, for example.

Using element attribute bindings means users can edit plain html pages to build data-driven, dynamically updating user interfaces, designers can style those interfaces and developers can implement element transitions via callback without needing to understand or configure the underlying update mechanism.

@erlenstar
erlenstar / README.md
Last active October 27, 2019 19:10 — forked from mbostock/.block

This brush snaps to day boundaries. As the user brushes, the brush fires brush events, allowing a listener to adjust the brush extent. Compare this approach to using brush transitions on brushend.

@erlenstar
erlenstar / README.md
Last active August 29, 2015 13:56 — forked from mbostock/.block

First shot at a data-driven homepage for Todd and Co's new project.