Skip to content

Instantly share code, notes, and snippets.

View DrizztDoUrden's full-sized avatar

Vasilii Filippov DrizztDoUrden

  • Belgrade, Serbia
  • 13:24 (UTC +02:00)
View GitHub Profile
@DrizztDoUrden
DrizztDoUrden / CompileShaders.targets
Last active October 18, 2017 14:04
MSBuild shader auto compile before build
<Project>
<PropertyGroup>
<WindowsKitVersion Condition="$(WindowsKitVersion)==''">10</WindowsKitVersion>
<SaveAsm Condition="$(SaveAsm)==''">True</SaveAsm>
<ShadersSubDir Condition="'$(ShadersSubDir)'==''">$(OutputPath)\Shaders</ShadersSubDir>
<ShadersAsmSubDir Condition="'$(ShadersAsmSubDir)'==''">Shaders</ShadersAsmSubDir>
<ShaderModel Condition="$(ShaderModel)==''">5_1</ShaderModel>
<ShaderAsmExtension Condition="$(ShaderAsmExtension)==''">asm</ShaderAsmExtension>
<ShaderBinExtension Condition="$(ShaderBinExtension)==''">cso</ShaderBinExtension>
<FxcArgs Condition="'$(Configuration)'=='Debug'">$(FxcArgs) /Od /Zi</FxcArgs>
using System;
using System.Collections.Generic;
using System.Text;
namespace Validator
{
public class ArgsParser
{
public event Action OnExecute;
public event Action<string> OnUnresolvedKey;
@DrizztDoUrden
DrizztDoUrden / DnD5e
Last active October 7, 2023 20:35
DnD5e excel module
JoinColumns=LAMBDA(left, right,
LET(
s, SEQUENCE(ROWS(left) + ROWS(right)),
IF(s > ROWS(left), INDEX(right, s - ROWS(left)), INDEX(left, s))
)
);
AverageRoll=LAMBDA(dieSides,
(1+dieSides)/2
);