- https://www.penguinrandomhouse.com/books/616914/an-immense-world-by-ed-yong/
- https://www.npr.org/2022/06/21/1105793891/ed-yong-an-immense-world-animal-senses
- Not mentioned in talk but related: https://www.sas.upenn.edu/~cavitch/pdf-library/Nagel_Bat.pdf (What's it like to be a bat?)
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
.cpu cortex-m0 | |
.fpu softvfp | |
.thumb | |
.section .text.program_code | |
.equ portA_address, 0x41004400 | |
.equ portA_DIRSET, 0x41004400+0x08 | |
.equ portA_OUTTGL, 0x41004400+0x1C |
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
// | |
// FixedWidth.swift | |
// TestingTwo | |
// | |
// Created by Carlyn Maw on 2/2/24. | |
// Inspired by 25:52 of WWDC 2020 "Safely Manage Pointers in Swift." | |
// In the subscript, using .load(fromByteOffset:as) prevents rebinding of memory for access. This struct can point to memory bound as a different type without overriding. | |
//TODO: Add tuplebride to help with C | |
//examples: https://github.com/carlynorama/UnsafeWrapCSampler/blob/main/Sources/Swift/TupleBridge.swift |
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
//https://adventofcode.com/2023/day/12 | |
//Based on https://forums.swift.org/t/advent-of-code-2023/68749/61 | |
//Intro video Lydia | |
//https://www.youtube.com/watch?v=PK3wL7DXuuw | |
//Compterphile: Computers Without Memory | |
//https://www.youtube.com/watch?v=vhiiia1_hC4 |
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
//So MyString[3] just works. Don't use in projects with real input. | |
extension StringProtocol { | |
subscript(offset: Int) -> Character { | |
self[index(startIndex, offsetBy: offset)] | |
} | |
} | |
extension StringProtocol { | |
//Ignores negative signs. |
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
public extension ClosedRange<Int> { | |
func crop(by other: ClosedRange<Int>) -> [ClosedRange<Int>] { | |
//print("cropping...") | |
guard self.overlaps(other) else { | |
//return [self] | |
fatalError("No overlap") | |
} | |
print("they overlap") | |
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
// | |
// SwiftUIStyle.swift | |
// | |
// | |
// Created by Carlyn Maw on 8/1/23. | |
// | |
import Foundation | |
//https://talk.objc.io/episodes/S01E225-view-protocols-and-shapes |
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
sudo apt update | |
sudo apt upgrade | |
sudo apt install clang libicu-dev build-essential pkg-config | |
apt install git gh | |
apt install libpng-dev | |
## NOTE THIS WAS DELETED LATER | |
apt install cmake | |
mkdir ~/swift |
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
// | |
// StringNode.swift | |
// | |
// | |
// Created by Carlyn Maw on 7/16/23. | |
// MIT License | |
// https://www.whynotestflight.com/excuses/hello-usd-part-11-gotta-make-it-easier-to-write-file-builders/ | |
public struct Indent { | |
let count:Int |
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
#usda 1.0 | |
def Xform "Rainbow" | |
{ | |
def Mesh "cubeMesh" | |
{ | |
float3[] extent = [(-2, -2, -2), (2, 2, 2)] | |
int[] faceVertexCounts = [4, 4, 4, 4, 4, 4] | |
int[] faceVertexIndices = [0, 1, 2, 3, 4, 5, 6, 7, 0, 6, 5, 1, 4, 7, 3, 2, 0, 3, 7, 6, 4, 2, 1, 5] |
NewerOlder