Skip to content

Instantly share code, notes, and snippets.

View Vild's full-sized avatar
🤔
Debugging

Dan Printzell Vild

🤔
Debugging
View GitHub Profile
@Vild
Vild / minesweeper-discord.d
Created December 19, 2019 19:36
Minesweeaper thingy
import std;
string[] toText = [
0 : ":black_large_square:", 1 : ":one:", 2 : ":two:", 3 : ":three:",
4 : ":four:", 5 : ":five:", 6 : ":six:", 7 : ":seven:", 8 : ":eight:",
9 : ":bomb:"
];
string toEmote(size_t i)
{
@Vild
Vild / VulkanJunk.d
Created September 27, 2018 22:18
Vulkan code that I threw away :c
enum DataRate {
vertex,
instance
}
struct ShaderData(T_, size_t BitsPerChannel_, string Channels_, ChannelFormat Format_) {
alias T = T_;
alias BitsPerChannel = BitsPerChannel_;
alias Channels = Channels_;
@Vild
Vild / block.d
Created August 6, 2018 17:16
Struct extend example
/**
* The filesystem base types
*
* Copyright: © 2015-2017, Dan Printzell
* License: $(LINK2 https://www.mozilla.org/en-US/MPL/2.0/, Mozilla Public License Version 2.0)
* (See accompanying file LICENSE)
* Authors: $(LINK2 https://vild.io/, Dan Printzell)
*/
module fs.block;
@Vild
Vild / space.glsl
Last active September 19, 2019 04:21
Space GLSL shader - Shader Editor
// By Dan Printzell <github vild io>
// License: MPLv2
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
uniform vec2 resolution;
uniform float time;

Keybase proof

I hereby claim:

  • I am vild on github.
  • I am wild (https://keybase.io/wild) on keybase.
  • I have a public key whose fingerprint is 0E87 D6C3 F9AF 7FDE D0C8 588D 22E3 B67B 4A86 FDE7

To claim this, I am signing this object: