Skip to content

Instantly share code, notes, and snippets.

@SED4906
SED4906 / iridescent.gdshader
Created July 12, 2024 21:00
Iridescent Godot Shader, based on work by Alan Zucconi
shader_type spatial;
float saturate(float x)
{
return clamp(x,0.0,1.0);
}
vec3 saturate3(vec3 x)
{
return clamp(x, vec3(0), vec3(1));
}
@SED4906
SED4906 / build.sh
Created September 11, 2023 02:37
A shell script to build a small ISO with just Linux and Busybox.
#!/bin/sh
set -ex
## Specific versions of packages
KERNEL_VERSION="6.1.52"
BUSYBOX_VERSION="1.36.1"
SYSLINUX_VERSION="6.03"
#LIMINE_VERSION="5.20230909.0"
## Download packages
if [ ! -d "packages" ]; then
mkdir packages
@SED4906
SED4906 / add.yaml
Created April 20, 2019 14:29
turingmachine.io
# Adds two binary numbers.
input: '0111 1100'
blank: ' '
start state: end
table:
# scan to the right
end:
[1,0]: R
' ' : {R: right}
# scan to the rightmost digit