Skip to content

Instantly share code, notes, and snippets.

View rkyymmt's full-sized avatar

Rikiya Yamamoto rkyymmt

View GitHub Profile
@Matt54
Matt54 / ExtrudedTextLowLevelMeshView.swift
Created September 25, 2025 02:50
RealityKit Extruded Text to LowLevelMesh animated by Metal compute shader
import Metal
import RealityKit
import SwiftUI
#Preview { ExtrudedTextLowLevelMeshView() }
struct ExtrudedTextLowLevelMeshView: View {
@State var lowLevelMesh: LowLevelMesh?
@State var originalVerticesBuffer: MTLBuffer?
@State var timer: Timer?
@Matt54
Matt54 / SDFPrimitives.metal
Created August 13, 2025 03:45
LowLevelMesh shape shifting with Marching Cubes and SDF interpolation
#include <metal_stdlib>
using namespace metal;
#define SDFShapeTypeSphere 0u
#define SDFShapeTypeBox 1u
#define SDFShapeTypeTorus 2u
#define SDFShapeTypeRoundedBox 3u
#define SDFShapeTypeBoxFrame 4u
#define SDFShapeTypeLink 5u
#define SDFShapeTypeOctahedron 6u
@Matt54
Matt54 / MarchingCubesParams.h
Last active September 22, 2025 17:20
Marching Cubes Metaballs in RealityKit (Metal + LowLevelMesh)
#ifndef MarchingCubesParams_h
#define MarchingCubesParams_h
#include <simd/simd.h>
struct MarchingCubesParams {
simd_uint3 cells;
simd_float3 origin;
simd_float3 cellSize;
float isoLevel;
simd_float3 centerA;
@Matt54
Matt54 / BurnFadeModelView.swift
Last active July 16, 2025 20:47
Burn Fade Animation for USDZ Models in RealityKit using LowLevelMesh, ShaderGraphMaterial & Metal Compute Shader
import Metal
import RealityKit
import SwiftUI
struct BurnFadeModelView: View {
@State var lowLevelMesh: LowLevelMesh?
@State var timer: Timer?
@State var isForward: Bool = true
@State var morphProgress: Float = 0.0
@State var dwellCounter: Int = 0
@GOROman
GOROman / webrtc.cpp
Last active January 7, 2025 14:50
Using DataChannel in the OpenAI Realtime API Embedded SDK
#ifndef LINUX_BUILD
#include <driver/i2s.h>
#include <opus.h>
#endif
#include <esp_event.h>
#include <esp_log.h>
#include <string.h>
#include "main.h"
@ksasao
ksasao / TextAssistant.ino
Created November 6, 2024 13:55
M5Stack LLM Module で日本語対話 https://x.com/ksasao/status/1854157588247806342 #M5StackLLM
/*
* SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD
* SPDX-License-Identifier: MIT
* M5Stack LLM Module で日本語対話。Serial MonitorでBoth BL&CRを設定するとよいです。
*/
#include <Arduino.h>
#include <M5Unified.h>
#include <M5ModuleLLM.h>
M5ModuleLLM module_llm;
@ynagatomo
ynagatomo / TipKitContentView.swift
Created May 24, 2024 09:01
A sample code that uses TipKit in visionOS.
//
// TipKitTestApp.swift
// TipKitTest
//
// Created by Yasuhito Nagatomo on 2024/05/24.
//
// A sample code that uses TipKit in visionOS.
//
// References:
// - Article: Swift with Majid, Discovering app features with TipKit. Basics., 07 May 2024
@alexweberk
alexweberk / mlx_finetuning_gemma.ipynb
Last active February 4, 2025 02:44
LoRA Fine-tuning Gemma with MLX
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VTSTech
VTSTech / VTSTech-GPT.py
Last active January 28, 2025 18:02
VTSTech-GPT - Generate text with Cerebras GPT pretrained and Corianas finetuned models
# Program: VTSTech-GPT.py 2025-01-28 1:02:59 PM
# Description: Python script that generates text with Cerebras GPT pretrained and Corianas finetuned models
# Author: Written by Veritas//VTSTech (veritas@vts-tech.org)
# GitHub: https://github.com/VTSTech
# Homepage: www.VTS-Tech.org
# Dependencies: transformers, colorama, Flask
# pip install transformers colorama flask
# Models are stored at C:\Users\%username%\.cache\huggingface\hub
import argparse
import time
@mala
mala / meety_vuln.md
Last active July 30, 2025 10:08
Meety脆弱性 2022-11

Meety脆弱性 2022-11

文責 mala

経緯:

  • Meety退会しようと思ったがアカウントがなかったので、退会するためにアカウントを作ることにした。

免責:

  • 気になった範囲ですぐに見つかったもののうち、悪用可能なものを記載しています。
  • 好ましくないが仕様だろうというものは書いていません。