Skip to content

Instantly share code, notes, and snippets.

View mango314's full-sized avatar
💭
https://retrocomputing.stackexchange.com/questions/tagged/6502

JM mango314

💭
https://retrocomputing.stackexchange.com/questions/tagged/6502
View GitHub Profile
@mango314
mango314 / pr.html
Last active December 14, 2015 07:59
a map of Puerto Rico by county
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/queue.v1.min.js"></script>
<style>
svg{ background-color:#FEFEFE;}
.stroke {
@mango314
mango314 / lissajous.html
Created March 2, 2013 00:21
a lissajous curve
<html>
<head>
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript">
//The data for our line
var lineData = Array();
@mango314
mango314 / README.md
Last active December 22, 2015 02:49
periodic family of square tilings

Square-Spirals taken from Danny Calegari's blog Mathematics Professor at U Chicago.

I ported graphics from the Postscript language (which your printer speaks) to d3.js (jsFiddle)

Calegari himself took this graphic from Richard Kenyon & was probably done in Mathematica.

Kenyon took the graphic from a paper by William Tutte in 1948.

@mango314
mango314 / README.md
Last active December 22, 2015 02:49
Hata's Tree-Like Set

Watch the twig grow into a branch with leaves (jsFiddle)

Similar to Jason Davies' Koch Island

Example 1.2.9 in Jun Kigami's textbook, Analysis on Fractals

The tree is not stored optimally -- slow around 11 and 12 iterations.

@mango314
mango314 / README.md
Created September 1, 2013 18:55
Limaçon

From Mathworld:

The limaçon can be generated by specifying a fixed point P, then drawing a sequences of circles with centers on a given circle which all pass through P. The envelope of these curves is a limaçon. If the fixed point is on the circumference of the circle, then the envelope is a cardioid.

Other constructions of limaçon appear on Wikipedia e.g. using pedal curves.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mango314
mango314 / README.md
Last active December 26, 2015 01:19
script for making skyscraper puzzles

A script for generating random latin squares and Skyscraper puzzles.

  3 1 4 2 3 3 2
  -------------
2|             |2
3|             |4
1|             |3
2|             |2
3|             |3

4| |3

@mango314
mango314 / README.md
Last active December 7, 2018 01:58
a map of all 2166 Census Tracts of New York City in Python Matplotlib

Census Tracts of New York City

Here at PyData NYC, I heard a tutorial of how to use numpy and iPython notebooks. In a previous gist, I wrote drew all the zip codes of the Bronx in d3.js

This would be great for reproducing inforgraphics like Educational Attainment in New York City -- Brooklyn which looks a bit like a jigsaw puzzle:

Where to Obtain the Data

@mango314
mango314 / README.md
Last active December 31, 2015 04:59
script for my dog

Before

# After
@mango314
mango314 / 1-README.md
Last active January 1, 2016 03:39
Voronoi Tesselation of Random Points on the Unit Square

Voronoi Tesselation

10000 pixels partitions in to 30 regions as follows:

415,  91, 596, 420, 347, 239, 313, 298, 447, 259, 
414, 229, 137, 347, 353, 449, 744, 453, 479, 313, 
362, 363, 494,  87, 343, 395, 327, 140,  62, 285