Skip to content

Instantly share code, notes, and snippets.

View SolarLiner's full-sized avatar
🪒
yak shaving

Nathan Graule SolarLiner

🪒
yak shaving
View GitHub Profile
class stack:
def __init__(self, *data):
self.data = [*data]
def push(self, data):
self.data.append(data)
def pop(self):
@SolarLiner
SolarLiner / mandelbrot.pde
Last active March 14, 2019 17:58 — forked from shiffman/mandelbrot.pde
PI Day
import java.math.BigDecimal;
import java.math.MathContext;
int digits = 11;
MathContext mc = new MathContext(digits*digits + 1);
BigDecimal c = new BigDecimal(0.25);
BigDecimal hundred = new BigDecimal(100);
BigDecimal e = BigDecimal.ONE.divide(hundred.pow(digits-1), mc);
BigDecimal z = BigDecimal.ZERO;
int iterations = 0;