Skip to content

Instantly share code, notes, and snippets.

View spajus's full-sized avatar
🌴
On vacation

spajus spajus

🌴
On vacation
View GitHub Profile
@zledas
zledas / ReadMe.md
Created June 20, 2026 20:09
Improved searchable `enum` value selector for Unity

Improved searchable enum value selector for Unity

This is an improved enum value selector for Unity editor. It offers value selection popup with searchable list of enum values.

Under the hood it uses Unitys AdvancedDropdown class, but as it has a lot of internal and private functionality, this "exposes" some of it to have nicer behaviour. No external dependencies.

To use it, add [SearchableEnum] attribute to the enum field.

#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior
#
# What this does:
# Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance
# system prompt instructions that cause the model to cut corners, simplify
# excessively, and defer complicated work.
#
@hrobertson
hrobertson / stardeusDebug.md
Last active March 1, 2023 16:16
Stardeus debugging in VSCode
  1. Check Unity version of Stardeus

Find [Stardeus install path]/UnityPlayer.dll and look at the version information. At time of writing it's Unity 2021.1.19

  1. If you don't already have the matching version of Unity Editor, download it from https://unity3d.com/get-unity/download/archive In this case, we need download 2021.1.19. Choose Unity Editor 64-bit.

  2. Make a backup of [Stardeus install path]/UnityPlayer.dll and [Stardeus install path]/Stardeus.exe

Shader "Hidden/JumpFloodOutline"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags { "PreviewType" = "Plane" }
Cull Off ZWrite Off ZTest Always
@Split82
Split82 / UnityShadersCheatSheet.shader
Created April 17, 2018 10:07
Unity Shaders Cheat Sheet
Shader "Name" {
Properties {
_Name ("display name", Range (min, max)) = number
_Name ("display name", Float) = number
_Name ("display name", Int) = number
_Name ("display name", Color) = (number,number,number,number)
_Name ("display name", Vector) = (number,number,number,number)
@wvengen
wvengen / README.md
Last active January 15, 2026 11:08
Ruby memory analysis over time

Finding a Ruby memory leak using a time analysis

When developing a program in Ruby, you may sometimes encounter a memory leak. For a while now, Ruby has a facility to gather information about what objects are laying around: ObjectSpace.

There are several approaches one can take to debug a leak. This discusses a time-based approach, where a full memory dump is generated every, say, 5 minutes, during a time that the memory leak is showing up. Afterwards, one can look at all the objects, and find out which ones are staying around, causing the

@zdenekjanda
zdenekjanda / flapjack_from_scratch.md
Created April 1, 2015 13:38
Flapjack from scratsh

Flapjack from scratch by Deu

Irb

launch IRB

irb
@gafferongames
gafferongames / delta_compression.cpp
Last active February 24, 2026 05:02
Delta Compression
/*
Delta Compression by Glenn Fiedler.
This source code is placed in the public domain.
http://gafferongames.com/2015/03/14/the-networked-physics-data-compression-challenge/
*/
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
@terrehbyte
terrehbyte / UsefulUnityAssets.md
Last active February 20, 2026 18:11
Useful Open-Source Unity Assets

Useful Open-Source Unity Assets

This is a compilation of various open-source Unity plugins, codebases, or utility scripts that may aid in expediting the development process.

Art / Design Tools

ProbePolisher - Light Probe Editor - keijiro

"ProbePolisher is a Unity Editor plugin for editing light probes. It works both on Unity Basic (free) and Unity Pro."

Code
Releases

@skamithi
skamithi / application_controller.rb
Created April 25, 2012 14:53
Adding Opensearch to my Rails 3.2 app
#app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
def opensearch
response.headers['Content-Type'] = 'application/opensearchdescription+xml; charset=utf-8'
end