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
# roots are at x=8 and y=2.3542 | |
from numpy import matrix | |
import numpy as np | |
def w4(): | |
eps = 1e-4 | |
p = 0 | |
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
from PIL import Image, ImageFont, ImageDraw | |
import os | |
def make_contact_sheet(fnames, (ncols,nrows), (photow,photoh), (marl,mart,marr,marb), padding): | |
imgs = [] | |
for fn in fnames: | |
img = Image.open(fn) | |
width, height = img.size | |
new_width, new_height = height, height |
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 <ai.h> | |
#include <string> | |
#include <cstring> | |
AI_SHADER_NODE_EXPORT_METHODS(directionalOcclusionMethods); | |
struct ShaderData { | |
AtSampler* sampler; | |
AtString trace_set; |