Skip to content

Instantly share code, notes, and snippets.

View bmershon's full-sized avatar

Brooks Mershon bmershon

View GitHub Profile
@bmershon
bmershon / .block
Last active September 27, 2023 10:12
Hofstadter's G Sequence
border: no
height: 960
license: gpl-3.0
@bmershon
bmershon / .block
Last active January 13, 2023 13:06
Y Combinator
border: no
@bmershon
bmershon / .block
Last active June 14, 2018 12:24
Minimum Spanning Tree
height: 960
border: no
license: MIT
@bmershon
bmershon / README.md
Last active March 21, 2018 10:13
Holes in Sensor Networks

Sensor networks allow for regions to be scanned for the presence of a particular object. Many small devices, each capable of making some measurements, can be distributed over the desired region. The types of measurements a sensor might make include taking temperature readings, detecting electromagnetic frequencies, and recording sound levels. A more complex sensor could process video footage and find valuable information automatically.

A critical consideration for sensor networks is the “blanket” of coverage that is produced. Wherever holes exist in this coverage, it is possible to miss critical information in the region we would like to scan.

If we have sophisticated sensors capable of measuring their exact position, then it is a fairly easy task to compute the coverage of the network. However, if we have simple sensors which can only record local information, then we are

@bmershon
bmershon / .block
Last active March 21, 2018 09:57 — forked from mbostock/.block
Polygon Clipping Degeneracies
license: gpl-3.0
height: 600
@bmershon
bmershon / .block
Last active December 12, 2017 17:03
Drink Blueprints
height: 768
width: 1050
border: no
license: gpl-3.0
@bmershon
bmershon / README.md
Last active October 12, 2017 18:48
Vietoris-Rips Complex (simplicial complex)

Copyright (c) 2014 Brooks Mershon

The MIT License - http://opensource.org/licenses/MIT

Please excuse the awful coding practices that may be found here.

This was more or less my first run at using D3 and JavaScript in an undergraduate math course (where writing code wasn't even expected, unless it was MATLAB). This was written before modular design, functional programming, and maturity had gripped the author to even a modest extent. This gadget (application seems too strong) was developed as if it were one colossal whiteboard exercise which permitted only small erasures and steady contributions over half of a semester.

The urge to go back and rearrange or modify in any way is strong, but I am choosing to leave this relic of sophomore year as a happy and messy memory of an assignment of which I am quite proud.

@bmershon
bmershon / .block
Last active August 1, 2017 00:28
1D Flat Foldability
license: MIT
height: 960
border: no
scroll: no
@bmershon
bmershon / .block
Last active July 28, 2017 03:20
1D Alternating Fold
license: MIT
height: 960
border: no
scroll: no
@bmershon
bmershon / .block
Last active July 23, 2017 23:48
Grid Cycles
scrolling: yes
border: no
height: 960
license: MIT