Skip to content

Instantly share code, notes, and snippets.

View drifkin's full-sized avatar

Devon Rifkin drifkin

View GitHub Profile
@drifkin
drifkin / flow-updates.md
Created May 3, 2018 00:32
Flow updates

A selection of interesting updates:

  • 0.56.0: Added support for null prototypes, a la Object.create(null)
  • 0.57.0: Flow will now only check the files in node_modules/ which are direct or transitive dependencies of the non-node_modules code.
  • 0.59.0: Adds a $ReadOnly<T> utility type which makes all properties on objects read-only. $ReadOnly<{ a: number, b: string }> behaves as if you wrote { +a: number, +b: string }. Read more about property variance on our blog.
  • 0.60.0:
    • New linters:
      • unclear-type warns about uses of any, Object and Function, since they unsafely circumvent the type system.
      • untyped-import warns when importing or requireing a module that does not have @flow.
    • Fixed Object.keys and $Keys on a dictionary of string literal keys, such that the result is now an array of the string literals instead of a generic string:
@drifkin
drifkin / README.md
Last active October 22, 2015 02:11
Delunay with circumcircles

Left click to toggle between Delaunay and Voronoi.
Right click to toggle whether the circumcircles are drawn.

Adapted from the Voronoi Tessellation and Delaunay Triangulation examples.

The Delaunay triangulation has the property that each triangle's circumcircle does not contain any points other than the vertices of its associated triangle.

The Delaunay triangulation is a dual of the Voronoi tessellation: given a Voronoi tessellation, connect vertices that correspond to neighboring polygons to get the Delaunay triangulation.

Built with blockbuilder.org.

### Keybase proof
I hereby claim:
* I am drifkin on github.
* I am drifkin (https://keybase.io/drifkin) on keybase.
* I have a public key whose fingerprint is 3BF2 1437 77C4 7958 43B9 F2AC F8B0 8163 9133 7358
To claim this, I am signing this object: