Skip to content

Instantly share code, notes, and snippets.

View deenar's full-sized avatar

Deenar Toraskar deenar

View GitHub Profile
@julien-truffaut
julien-truffaut / friendlyOptics.MD
Last active September 16, 2020 05:16
Proposal for new optics names

Frieldly optics name proposals

Here are some proposal for optics names. The goal is to give a better intuition to beginners, especially people with no FP experience.

  • Setter -> Replace, Modify, Write
  • Fold -> Aggregate
  • NonEmptyFold -> Reduce
  • Getter -> Read
  • ReadOnlyOptional -> ???
@deenar
deenar / README.md
Last active September 26, 2015 07:46 — forked from mbostock/.block
Collapsible Tree
@deenar
deenar / README.md
Last active September 24, 2015 17:04 — forked from mbostock/.block
Treemap

A treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value. This example uses color to encode different packages of the Flare visualization toolkit. Treemap design invented by Ben Shneiderman. Squarified algorithm by Bruls, Huizing and van Wijk. Data courtesy Jeff Heer.

@deenar
deenar / README.md
Last active February 22, 2018 19:47 — forked from mbostock/.block
Circle Packing

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

@deenar
deenar / README.md
Last active September 24, 2015 17:05 — forked from mbostock/.block
Radial Reingold–Tilford Tree

The tree layout implements the Reingold-Tilford algorithm for efficient, tidy arrangement of layered nodes. The depth of nodes is computed by distance from the root, leading to a ragged appearance. Cartesian orientations are also supported. Implementation based on work by Jeff Heer and Jason Davies using Buchheim et al.'s linear-time variant of the Reingold-Tilford algorithm. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

Compare to this Cartesian layout.