This file contains hidden or 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 layout import ( | |
Layout, | |
LayoutTensor, | |
RuntimeLayout, | |
RuntimeTuple, | |
UNKNOWN_VALUE, | |
) | |
from utils import IndexList | |
This file contains hidden or 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 sys import stderr | |
from math import tan | |
from algorithm import parallelize | |
from os.atomic import Atomic | |
from .hittable import Hittable, HitRecord | |
@value | |
struct Camera: |
This file contains hidden or 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
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"data": {"url": "data/population.json"}, | |
"transform": [ | |
{"filter": "datum.year == 2000"}, | |
{"calculate": "datum.sex == 2 ? 'Female' : 'Male'", "as": "gender"} | |
], | |
"mark": {"type": "arc", "tooltip": true}, | |
"encoding": { | |
"theta": { |
This file contains hidden or 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
### A Pluto.jl notebook ### | |
# v0.12.6 | |
using Markdown | |
using InteractiveUtils | |
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). | |
macro bind(def, element) | |
quote | |
local el = $(esc(element)) |