This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Python.h> | |
#include <structmember.h> | |
typedef struct { | |
PyHeapTypeObject super; | |
int meta_magic; | |
int meta_member; | |
char some_more[64]; | |
} DummyMeta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code taken from article: http://www.tylermw.com/throwing-shade/ | |
# Author: Tyler Morgan-Wall | |
# License: GPLv3 | |
volcanoshadow = matrix(1, ncol = ncol(volcano), nrow = nrow(volcano)) | |
volc = list(x=1:nrow(volcano), y=1:ncol(volcano), z=volcano) | |
sunangle = 45 / 180*pi | |
angle = -90 / 180 * pi | |
diffangle = 90 / 180 * pi |
NewerOlder