Skip to content

Instantly share code, notes, and snippets.

View DeltaF1's full-sized avatar

DeltaF1 DeltaF1

  • Deep in The Well of Recursion
View GitHub Profile
@non
non / grep.tal
Last active February 10, 2022 03:52
Regex implementation in Uxntal. Includes a simple grep implementation was well as a REPL for testing.
( grep.tal )
( )
( by d_m )
( print a character to STDOUT )
%emit { #18 DEO }
( the first argument to grep is the regex )
( arguments are passed on STDIN, so we just )
( assume the first "line" is the argument )
@wilbefast
wilbefast / fisheye.frag
Created May 1, 2015 18:17
Fish-eye Shader for Love 2D
const float PI = 3.1415926535;
vec4 effect( vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords)
{
float aperture = 178.0;
float apertureHalf = 0.5 * aperture * (PI / 180.0);
float maxFactor = sin(apertureHalf);
vec2 uv;
vec2 xy = 2.0 * texture_coords.xy - 1.0;