Skip to content

Instantly share code, notes, and snippets.

View hYdos's full-sized avatar
🥔
:tiny_potato:

hydos hYdos

🥔
:tiny_potato:
  • Brisbane
View GitHub Profile
use citro3d::include_aligned_bytes;
use citro3d_sys::{
shaderProgram_s, C3D_FVec, C3D_Mtx, C3D_Tex, Mtx_RotateX, Mtx_RotateY, Mtx_Scale,
Mtx_Translate, GPU_TEXTURE_FILTER_PARAM,
};
use ctru::gfx::{Gfx, Side};
use ctru::services::apt::Apt;
use ctru::services::hid::{Hid, KeyPad};
use citro3d::render::{ClearFlags, ColorFormat, DepthFormat};
#![allow(non_snake_case)]
use citro3d_sys::*;
use ctru::prelude::{Hid, KeyPad};
pub const fn color(red: u32, green: u32, blue: u32) -> u32 {
let r = red & 0xFF;
let g = green & 0xFF;
let b = blue & 0xFF;
let a = 0xFF;
#![feature(slice_as_chunks)]
mod utils;
use std::ffi::{CString};
use std::fs::read;
use std::mem;
use std::mem::{MaybeUninit, size_of, size_of_val};
use std::ptr::{null_mut};
use citro3d_sys::*;
static class NamespacedWrapper<T extends IForgeRegistryEntry<T>> extends MappedRegistry<T> implements ILockableRegistry {
private static final Logger LOGGER = LogManager.getLogger();
private boolean locked = false;
public final ForgeRegistry<T> delegate;
public NamespacedWrapper(ForgeRegistry<T> owner) {
super(owner.getRegistryKey(), Lifecycle.experimental());
this.delegate = owner;
}
====================[ Build | binviz | Debug ]==================================
/home/haydenv/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/211.7628.27/bin/cmake/linux/bin/cmake --build /home/haydenv/CLionProjects/VelocityRa/binviz/cmake-build-debug --target binviz -- -j 9
[ 21%] Building CXX object external/imgui_glfw_gl3_backend/CMakeFiles/imgui_glfw_gl3_backend.dir/imgui_impl_opengl3.cpp.o
[ 21%] Building CXX object src/util/CMakeFiles/util.dir/util.cpp.o
[ 21%] Building CXX object src/util/CMakeFiles/util.dir/log.cpp.o
[ 35%] Built target stb_image
[ 42%] Building CXX object external/imgui_glfw_gl3_backend/CMakeFiles/imgui_glfw_gl3_backend.dir/imgui_impl_glfw.cpp.o
[ 50%] Linking CXX static library ../../lib/libimgui_glfw_gl3_backend.a
[ 50%] Built target imgui_glfw_gl3_backend
/home/haydenv/CLionProjects/VelocityRa/binviz/src/util/log.cpp: In function ‘void logging::init()’:
@hYdos
hYdos / Canvas.kt
Created March 30, 2021 20:03
conc
package me.hydos.rosella.gui
import me.hydos.rosella.Rosella
import me.hydos.rosella.render.io.Window
import me.hydos.rosella.render.material.Material
import me.hydos.rosella.render.model.GuiRenderObject
import me.hydos.rosella.render.resource.Global
import me.hydos.rosella.render.resource.Identifier
import me.hydos.rosella.render.resource.Resource
import me.hydos.rosella.render.shader.Shader
Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods org.eclipse.jdt.internal.compiler.problem.AbortCompilation: Pb(324) The type javax.annotation.Nullable cannot be resolved. It is indirectly referenced from required .class files
Could not remap fabric-networking-v0-0.2.0+b217b2f539-sources.jar fully!
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.bindArguments(AbstractMethodDeclaration.java:144)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:542)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1293)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1418)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:666)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:901)
at org.eclips
@hYdos
hYdos / darkmode.css
Created December 17, 2020 22:35
matcher darkmode
.root {
-fx-base: #3f474f;
-fx-accent: #e7eff7 ;
-fx-default-button: #7f878f ;
-fx-focus-color: #efefef;
-fx-faint-focus-color: #efefef22;
-fx-focused-text-base-color : ladder(
-fx-selection-bar,
-fx-light-text-color 45%,
-fx-dark-text-color 46%,
This file has been truncated, but you can view the full file.
v1 official intermediary
CLASS a net/minecraft/class_4752
FIELD a Z A field_21866
FIELD a Ljava/lang/String; B field_21867
FIELD a I C field_21868
FIELD a [La; D field_21869
FIELD a La; a field_21870
FIELD a La; b field_21871
FIELD a La; c field_21872
FIELD a La; d field_21873
This file has been truncated, but you can view the full file.
v1 official intermediary
CLASS a net/minecraft/class_4752
FIELD a Z A field_21866
FIELD a Ljava/lang/String; B field_21867
FIELD a I C field_21868
FIELD a [La; D field_21869
FIELD a La; a field_21870
FIELD a La; b field_21871
FIELD a La; c field_21872
FIELD a La; d field_21873