Skip to content

Instantly share code, notes, and snippets.

View dzautner's full-sized avatar

Lord Daniel Zautner dzautner

View GitHub Profile
import numpy as np
from matplotlib.image import imsave
from numba import njit, prange, vectorize
import os
# Parameters
width, height = 3840 / 2, 3840 / 2
zoom_speed = 0.93
cx, cy = -0.743643887037158704752191506114774, 0.131825904205311970493132056385139
zoom = 1.0
const fibonacciResults = {}
function Fibonacci(n) {
if (!fibonacciResults[n]) {
fibonacciResults[n] = n <= 1 ? 1 : Fibonacci(n - 1) + Fibonacci(n - 2);
}
return fibonacciResults[n];
}
2018-01-03 13:12:45.425 spritybird[50829:3232790] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance 0x10f8e2130'
*** First throw call stack:
(
0 CoreFoundation 0x000000010f623d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010e9cd21e objc_exception_throw + 48
2 CoreFoundation 0x000000010f693f04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010f5a9005 ___forwarding___ + 1013
4 CoreFoundation 0x000000010f5a8b88 _CF_forwarding_prep_0 + 120
5 CoreFoundation 0x000000010f5479cd isEqualToString + 61
6 CoreFoundation 0x000000010f59084b -[NSTaggedPointerString isEqualToString:] + 27
@dzautner
dzautner / hummus.md
Last active January 7, 2016 11:08
Hummus

Ingredients

2 cups of small chickpeas, preferably from the Bulgarian type (although, I don't think one can be too selective about that in Finland) 2/3 cups of raw tahini (I think you can find it in the Israeli food shop near Kamppi) lemon juice squeezed from 2 small lemons 1 small/medium onion 3-5 garlic cloves 1/4 - 1/3 spoons of cumin 1 spoon soda powder