Skip to content

Instantly share code, notes, and snippets.

@Matt54
Matt54 / BubbleRealityView.swift
Last active December 21, 2024 01:16
A floating bubble (morphing transparent sphere) RealityView created from a LowLevelMesh
import RealityKit
import SwiftUI
struct BubbleRealityView: View {
@State private var currentEntity: Entity?
@State private var morphFactor: Float = 0.0
@State private var frameDuration: TimeInterval = 0.0
@State private var lastUpdateTime = CACurrentMediaTime()
static let animationFrameDuration: TimeInterval = 1.0 / 120.0
@ole
ole / thirty-days-of-metal.md
Last active December 1, 2025 18:57
Warren Moore – Thirty Days of Metal
@koulmomo
koulmomo / sublime_text_2_perfect_key_bindings
Created January 13, 2014 08:41
Perfect Sublime Text 2 Key Bindings. Tab to skip out of brackets, braces, parentheses, and quotes/quotations but still be able to indent
[
// Move out of common paired characters () and [] with `Tab`
{
"keys": ["tab"],
"command": "move",
"args": {"by": "characters", "forward": true},
"context": [
// Check if next char matches (followed by anything)
{ "key": "following_text", "operator": "regex_match", "operand": "(:?`|\\)|\\]|\\}).*", "match_all": true },
// ...and that there is a paid character before it on the same