Skip to content

Instantly share code, notes, and snippets.

View DigitalInBlue's full-sized avatar

John Farrier DigitalInBlue

View GitHub Profile
@DigitalInBlue
DigitalInBlue / GTestNoDeath.h
Last active August 13, 2020 14:31
An extension for GoogleTest (GTest). `EXPECT_NO_DEATH` is the opposite of EXPECT_DEATH. It passes if the statement does not abort, assert, or otherwise die.
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
//
// In jurisdictions that recognize copyright laws, the author or authors
// of this software dedicate any and all copyright interest in the
// software to the public domain. We make this dedication for the benefit
@DigitalInBlue
DigitalInBlue / mandelbrot.py
Created February 4, 2018 20:28
Python Mandelbrot Set Batch Rendering
# Copyright 2018 John E. Farrier
# References:
# https://gist.github.com/jfpuget/60e07a82dece69b011bb
# https://linas.org/art-gallery/escape/smooth.html
# https://matplotlib.org/devdocs/api/_as_gen/matplotlib.colors.LightSource.html
# https://matplotlib.org/examples/color/colormaps_reference.html
# https://matplotlib.org/examples/pylab_examples/shading_example.html
# https://matplotlib.org/examples/showcase/mandelbrot.html