Skip to content

Instantly share code, notes, and snippets.

View danbee's full-sized avatar

Daniel Barber danbee

View GitHub Profile
@danbee
danbee / 64squares.club.sh
Last active November 30, 2018 19:55
64squares name resolution
$ whois 64squares.club
% IANA WHOIS server
% for more information on IANA, visit http://www.iana.org
% This query returned 1 object
refer: whois.nic.club
domain: CLUB
organisation: .CLUB DOMAINS, LLC
bind_to_address "any"
music_directory "~/Music/Library"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/database"
log_file "~/.mpd/log"
pid_file "~/.mpd/pid"
state_file "~/.mpd/state"
sticker_file "~/.mpd/sticker.sql"
@danbee
danbee / functions.frag
Created June 22, 2020 02:09
Some GLSL shader functions
vec3 square(vec2 st,vec2 bli,vec2 tri,vec3 color) {
// bottom-left
vec2 bl = step(bli,st);
// top-right
vec2 tr = step(1.0-tri,1.0-st);
float pct = bl.x * bl.y * tr.x * tr.y;
vec3 c = vec3(pct * color);