- Save
happy.hlsl
to disk, note the path for later. - Open Windows terminal settings
- Open settings as JSON
- Add a custom shader to the default profile, see excerpt below.
{
"profiles": {
#nullable enable | |
#addin nuget:?package=Cake.Git&version=2.0.0 | |
var target = Argument("target", "GithubAction"); | |
var repoUri = "https://github.com/mrange/cake.tool.experiments.git"; | |
record BuildData( | |
DirectoryPath RootPath | |
, DirectoryPath GithubPath | |
, DirectoryPath RepoPath |
# Stored under My Documents\WindowsPowerShell | |
function global:prompt | |
{ | |
"╭─ PS $($executionContext.SessionState.Path.CurrentLocation) $('+' * ($nestedPromptLevel))`n╰─$ "; | |
} |
#!/bin/sh | |
# From Gerrit Code Review 2.12.3 | |
# | |
# Part of Gerrit Code Review (https://www.gerritcodereview.com/) | |
# | |
# Copyright (C) 2009 The Android Open Source Project | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net6.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Include="Program.fs" /> | |
</ItemGroup> |
#define WINDOWS_TERMINAL | |
Texture2D shaderTexture; | |
SamplerState samplerState; | |
// -------------------- | |
#if defined(WINDOWS_TERMINAL) | |
cbuffer PixelShaderSettings { | |
float Time; | |
float Scale; |
// Example on the "easy" way to generate the fibonacci sequence | |
// https://en.wikipedia.org/wiki/Fibonacci_number | |
// Take the first 20 fibonacci numbers and print them | |
// the "easy" way. | |
foreach(var n in Fibonacci().Take(20)) | |
{ | |
Console.WriteLine(n); | |
} |
namespace CsDI | |
{ | |
partial record DI | |
{ | |
IY? _singletonOf_IY; | |
IZ? _singletonOf_IZ; | |
public void Get(out IX v) | |
{ |
namespace CsGenAll | |
{ | |
using System.Diagnostics; | |
// BooleanValue - BEGIN | |
// Kind: IsEnum | |
public enum BooleanValue | |
{ |