Skip to content

Instantly share code, notes, and snippets.

View elkraneo's full-sized avatar
🪐

Cristian Díaz elkraneo

🪐
View GitHub Profile
@arthurschiller
arthurschiller / rk_wireframeMaterial.metal
Created March 8, 2023 20:51
RealityKit Wireframe Shader (Custom Material)
#include <metal_stdlib>
#include <RealityKit/RealityKit.h>
// Godot Source Credits: https://godotshaders.com/shader/wireframe-shader-godot-4-0/
// https://catlikecoding.com/unity/tutorials/advanced-rendering/flat-and-wireframe-shading/
using namespace metal;
constant half3 albedo = half3(1.0);
constant half3 wireColor = half3(255. / 255, 213. / 255, 6. / 255);
import Foundation
public enum Platform {
case iOS
case iOSOnMac
case mac
}
public func execute(if condition: Bool, _ action: () -> Void) {
if condition {
@mi5ty
mi5ty / tananodes_cheatsheet.md
Last active May 1, 2025 14:06
Tana Cheat Sheet

%%tana%%

  • Cheat Sheet
    • ✨ Tana Expressions
      • Title #tana-expression
        • Description:: A title expression composes values from the node into a title.
        • Attributes:: Search for Tana "Title" Attributes
      • Search #tana-expression
        • Description:: The search expression consists of a flat list of match-clauses that must be true for a node to match the search.
        • Attributes:: Search for Search Attributes + Search for Search Field Values
  • 🧩 Tana Attributes
@brettohland
brettohland / 1.0 FormatStyle in Excruciating Detail.md
Last active October 14, 2025 22:59
FormatStyle in Excruciating Detail
@ynagatomo
ynagatomo / RealityDump.swift
Last active October 30, 2024 20:32
A simple dump function to show the RealityKit Entity, ModelEntity, and AnchorEntity object.
// RealityDump.swift
// Created by Yasuhito NAGATOMO on 2022/02/22.
import Foundation
import RealityKit
#if DEBUG
// swiftlint:disable line_length
private let keywords = [ // (string, indentLevel [1...])
@iinfin
iinfin / houdini_attributes.md
Last active November 27, 2025 22:21
houdini attributes cheatsheet

https://mrkunz.com/blog/08_22_2018_VEX_Wrangle_Cheat_Sheet.html

f@Frame The current floating frame number, equivalent to the $FF Hscript variable
f@Time The current time in seconds, equivalent to the $T Hscript variable
i@SimFrame The integer simulation timestep number ($SF), only present in DOP contexts
f@SimTime The simulation time in seconds ($ST), only present in DOP contexts
f@TimeInc The timestep currently being used for simulation or playback
- -
//
// ContentView.swift
//
//
// Created by Bernstein, Joel on 7/4/20.
//
import SwiftUI
struct ElementModel: Identifiable
@IanKeen
IanKeen / Default.swift
Last active July 4, 2024 14:55
PropertyWrapper: Decode default values. when they are `null`
import Foundation
public protocol DefaultValue {
associatedtype Value: Codable
static var value: Value { get }
}
@propertyWrapper
public struct Default<Default: DefaultValue>: Codable {
@IsaacXen
IsaacXen / README.md
Last active December 11, 2025 12:34
(Almost) Every WWDC videos download links for aria2c.
//
// BottomSheetView.swift
//
// Created by Majid Jabrayilov
// Copyright © 2019 Majid Jabrayilov. All rights reserved.
//
import SwiftUI
fileprivate enum Constants {
static let radius: CGFloat = 16