Skip to content

Instantly share code, notes, and snippets.

View azunyuuuuuuu's full-sized avatar
💁‍♀️

azunyuuuuuuu

💁‍♀️
View GitHub Profile
@azunyuuuuuuu
azunyuuuuuuu / DCPU-16Spec.txt
Created February 17, 2026 05:32 — forked from metaphox/DCPU-16Spec.txt
DCPU-16 Specification
DCPU-16 Specification
Copyright 1985 Mojang
Version 1.7
=== SUMMARY ====================================================================
* 16 bit words
* 0x10000 words of ram
@azunyuuuuuuu
azunyuuuuuuu / SetDefaultUserFolder.cmd
Created February 17, 2026 05:31
The script available in Windows 11 which can be used during the OOBE step to set the user folder name in c:\users\<usernam> to whatever you want
@echo off
setlocal enabledelayedexpansion
chcp 65001 >nul
set "input=%*"
if "%input%"=="" (
echo Usage: SetDefaultUserFolder.cmd ^<value^>
echo Example: SetDefaultUserFolder.cmd MyFolderName
exit /b 1
@azunyuuuuuuu
azunyuuuuuuu / listformatter.js
Created November 29, 2025 20:43
some javascript/typescript things
const listFormatter = new Intl.ListFormat('de', {
style: 'long',
type: 'conjunction',
});
const items = ['apples', 'bananas', 'oranges'];
listFormatter.format(items);
@azunyuuuuuuu
azunyuuuuuuu / index.html
Created November 20, 2024 07:07
some tailwindcss colors
<div class="p-10 grid gap-4">
<div class="w-20 h-20 bg-primary-500">primary</div>
<div class="w-20 h-20 bg-secondary-500">secondary</div>
<div class="w-20 h-20 bg-success-500">success</div>
<div class="w-20 h-20 bg-danger-500">danger</div>
<div class="w-20 h-20 bg-warning-500">warning</div>
<div class="w-20 h-20 bg-info-500">info</div>
</div>
@azunyuuuuuuu
azunyuuuuuuu / program.cs
Created June 6, 2024 14:46
get random lottery numbers for germany in csharp
using System;
using System.Linq;
var randoms = Enumerable.Range(1, 6)
.Select(_ => Random.Shared.Next(1, 49))
.OrderBy(number => number)
.Select((item, index) => (item, index));
foreach (var (number, i) in randoms)
Console.WriteLine($"Zahl {i + 1}: {number}");
@azunyuuuuuuu
azunyuuuuuuu / disposable-action.cs
Last active October 30, 2024 05:08
personal c# snippet collection
public sealed class DisposableAction(Action action) : IDisposable
{
private readonly Action _action
= action ?? throw new ArgumentNullException(nameof(action));
public void Dispose()
=> _action();
}
@azunyuuuuuuu
azunyuuuuuuu / HealthBar.razor
Created August 2, 2022 06:52
Blazor Animated Health Bar Component
<div class="relative overflow-hidden w-full bg-neutral-100/30 rounded-full h-2.5 outline outline-2 outline-offset-1 outline-neutral-100 shadow">
<div class="absolute @decrease bg-green-400 h-full " style=" width: @(percentage)%;"></div>
<div class="absolute @decrease bg-green-500 h-full transition-[width] duration-1000 ease-linear" style="width: @(percentage)%"></div>
<div class="absolute @increase bg-red-600 h-full transition-[width] duration-1000 ease-linear" style="width: @(percentage)%;"></div>
<div class="absolute @increase bg-green-500 h-full " style="width: @(percentage)%"></div>
</div>
@azunyuuuuuuu
azunyuuuuuuu / text.md
Last active April 10, 2022 20:51
Schafe Schlafen was?!

Schafe Schlafen was?!

Man stelle sich vor: 2 eingezäunte Felder, getrennt durch eine Straße, beide haben eine unbestimmte Anzahl an Schafe, aber genug um für die Schaefer, denen die Felder und die Schafe gehören, Durchzählen der Schafe einzuschlafen. Eines Tages entläuft ein Schaf von eines der Felder auf die Straße und läuft herum. Passanten die auf der Straße gehen sehen das Schaf, fangen es ein und packen es wieder in eines der eingezäunten Felder. Leider aber das falsche Feld.

Jetzt das Problem: Wenn die Schäfer schlafen gehen wollen dann zählen sie die Schafe durch und schlafen dann dabei ein. Da aber bei einem Feld ein Schaf zu viel ist was auf dem anderen Feld fehlt kann der eine Schäfer weitaus besser schlafen als sonst, der andere Schäfer aber überhaupt gar nicht.

@azunyuuuuuuu
azunyuuuuuuu / codeswing.json
Last active December 13, 2021 20:28
gallery idea
{
"scripts": [
"https://cdn.tailwindcss.com"
],
"styles": []
}
@azunyuuuuuuu
azunyuuuuuuu / codeswing.json
Last active December 13, 2021 20:21
another svg test but as pattern
{
"scripts": [
"https://cdn.tailwindcss.com"
],
"styles": []
}