Skip to content

Instantly share code, notes, and snippets.

View allswellthatsmaxwell's full-sized avatar

Maxwell Peterson allswellthatsmaxwell

  • Minneapolis
View GitHub Profile
my.map <- function(l, f) {
ifelse(length(l) > 0,
append(f(l[[1]]),
my.map(l[-1], f)),
list())
}
my.map(list(1,2,3), identity) # returns list(1); should return list(1,2,3)
@allswellthatsmaxwell
allswellthatsmaxwell / Cargo.toml
Last active August 15, 2020 18:15
bevy tutorial add plugins step
[package]
name = "game"
version = "0.1.0"
authors = ["maxwell"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = "0.1.2" # make sure this is the latest version
# I keep getting this response from the transcriptions endpoint:
{"error":{"message":"Invalid file format.
Supported formats: ['m4a', 'mp3', 'webm', 'mp4', 'mpga', 'wav', 'mpeg']",
"type":"invalid_request_error","param":null,"code":null}}
# But the blob I'm uploading has type mp4... I think? Here is the blob's console output:
{"_data":{"size":252408,"offset":0,"blobId":"716D0789-6787-4D4B-A60E-72AE30483195","type":"video/mp4",
"name":"recording-734C56FB-EB50-45C1-86CE-027AC71257F4.mp4","__collector":{}}}