Skip to content

Instantly share code, notes, and snippets.

description globs alwaysApply
Check Bevy source code locally for accurate API information
true

When working with Bevy, always check the LOCAL source code and documentation to ensure version accuracy.

Quick Access to Bevy Resources

10:19:41java.lang.ArrayIndexOutOfBoundsException: Index -33984 out of bounds for length 128
10:19:41 at knot//com.mojang.blaze3d.opengl.GlStateManager._bindTexture(GlStateManager.java:407)
10:19:41 at knot//net.minecraft.class_10865.createTexture(class_10865.java:146)
10:19:41 at knot//net.minecraft.class_10865.createTexture(class_10865.java:108)
10:19:41 at knot//net.minecraft.class_10537.method_65856(class_10537.java:36)
10:19:41 at knot//net.minecraft.class_10537.method_65857(class_10537.java:29)
10:19:41 at knot//net.minecraft.class_1060.method_65876(class_1060.java:48)
10:19:41 at knot//net.minecraft.class_1060.method_4619(class_1060.java:107)
10:19:41 at knot//net.minecraft.class_4668$class_5940.method_34559(class_4668.java:80)
10:19:41 at knot//net.minecraft.class_4668.method_23516(class_4668.java:36)
@phase
phase / yokeable_ident.rs
Created November 22, 2024 01:15
yokeable ident. thinking about swapping to just use Ustr and not borrow any data.
use std::{ops::Deref, sync::Arc};
use rustix::path::Arg;
use stable_deref_trait::StableDeref;
use ustr::{Ustr, ustr};
use yoke::Yoke;
use yoke_derive::Yokeable;
mod access;
mod descriptor;
@phase
phase / denyCapabilities.zig
Last active May 10, 2024 05:19
denyCapabilities.zig - almost Pony's reference capabilities in Zig
// Tested with Zig 0.12.0
const std = @import("std");
const assert = std.debug.assert;
const Cap = enum { iso, trn, val, ref, box, tag };
fn aliasCap(cap: Cap) Cap {
return switch (cap) {
.iso => .tag,
.trn => .box,
@phase
phase / zig-compiler.zig
Created March 4, 2024 15:09
a bunch of files from https://github.com/ziglang/zig/tree/master/src concatenated together
This file has been truncated, but you can view the full file.
//! Analyzed Intermediate Representation.
//! This data is produced by Sema and consumed by codegen.
//! Unlike ZIR where there is one instance for an entire source file, each function
//! gets its own `Air` instance.
const std = @import("std");
const builtin = @import("builtin");
const assert = std.debug.assert;
const Air = @This();
@phase
phase / melior_usage.rs
Created February 21, 2024 16:50
melior_usage.rs
fn _main() {
println!("Hello, world!");
let registry = DialectRegistry::new();
register_all_dialects(&registry);
let context = Context::new();
context.append_dialect_registry(&registry);
context.load_all_available_dialects();
pip3 install PyQt5
Defaulting to user installation because normal site-packages is not writeable
Collecting PyQt5
Downloading PyQt5-5.15.9.tar.gz (3.2 MB)
|████████████████████████████████| 3.2 MB 3.0 MB/s
WARNING: Value for prefixed-purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /private/var/folders/2_/ccbsgkgs3jbdy203zz5yxy5c0000gn/T/pip-build-env-g6vbgij4/normal/lib/python3.9/site-packages
sysconfig: /Library/Python/3.9/site-packages
WARNING: Value for prefixed-platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /private/var/folders/2_/ccbsgkgs3jbdy203zz5yxy5c0000gn/T/pip-build-env-g6vbgij4/normal/lib/python3.9/site-packages
> install.packages("batchtools")
Installing package into ‘/home/jaf582/R/4.1’
(as ‘lib’ is unspecified)
also installing the dependencies ‘lifecycle’, ‘vctrs’, ‘hms’, ‘base64url’, ‘checkmate’, ‘progress’
trying URL 'http://cloud.r-project.org/src/contrib/lifecycle_1.0.3.tar.gz'
Content type 'application/x-gzip' length 106854 bytes (104 KB)
==================================================
downloaded 104 KB
@phase
phase / o.zig
Created February 5, 2023 04:01
pub const __builtin_bswap16 = @import("std").zig.c_builtins.__builtin_bswap16;
pub const __builtin_bswap32 = @import("std").zig.c_builtins.__builtin_bswap32;
pub const __builtin_bswap64 = @import("std").zig.c_builtins.__builtin_bswap64;
pub const __builtin_signbit = @import("std").zig.c_builtins.__builtin_signbit;
pub const __builtin_signbitf = @import("std").zig.c_builtins.__builtin_signbitf;
pub const __builtin_popcount = @import("std").zig.c_builtins.__builtin_popcount;
pub const __builtin_ctz = @import("std").zig.c_builtins.__builtin_ctz;
pub const __builtin_clz = @import("std").zig.c_builtins.__builtin_clz;
pub const __builtin_sqrt = @import("std").zig.c_builtins.__builtin_sqrt;
pub const __builtin_sqrtf = @import("std").zig.c_builtins.__builtin_sqrtf;
@phase
phase / read-dt.org
Created December 18, 2022 04:17 — forked from queertypes/read-dt.org
Implement a Dependently Typed Language and Then Some