Skip to content

Instantly share code, notes, and snippets.

View DrizztDoUrden's full-sized avatar

Vasilii Filippov DrizztDoUrden

  • Belgrade, Serbia
  • 07:04 (UTC +02:00)
View GitHub Profile
@DrizztDoUrden
DrizztDoUrden / insanity.omp.json
Created April 24, 2025 11:57
My Frankenstein of omp themes
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"shell_integration": true,
"patch_pwsh_bleed": true,
"console_title_template": "{{.UserName}}@{{.HostName}} at {{.Shell}} in {{.Folder}}{{if .Root}} as root{{else}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
@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
);
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 / 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>