Skip to content

Instantly share code, notes, and snippets.

View Lamparter's full-sized avatar

Lamparter Lamparter

View GitHub Profile
<!--
***********************************************************************************************
NuGet.Build.Tasks.Pack.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
@Lamparter
Lamparter / FixIgnores.cmd
Created February 17, 2025 08:32
Command to fix Git when you update the ignore with files already
git rm -r --cached .
@Lamparter
Lamparter / CollectionResources.xaml
Created January 11, 2025 18:05
GlowUI collections
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ItemsPanelTemplate x:Key="HorizontalList">
<VirtualizingStackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ResourceDictionary>
@Lamparter
Lamparter / DropShadowPanel.Properties.UWP.cs
Created January 11, 2025 18:00
Abandoned CubeKit usercontrols
using Microsoft.Toolkit.Uwp.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI;
using Windows.UI.Composition;
using Windows.UI.Xaml;
@Lamparter
Lamparter / README.md
Created December 7, 2024 09:48
Alloy application model

Important

This is still under development and documentation.

🚧 Alloy

Alloy was a stroke of genius I came up with while trying to figure out how on earth I could package both UWP and WindowsAppSDK (WinRT) versions of a class library in one package. It's painfully simple (honestly, how has nobody come up with this before?)

@Lamparter
Lamparter / Make-AppLinkExecutable.md
Last active October 10, 2024 06:22
Create an *.exe that links to a WinAppSdk app

Resources:

Project

  • When creating, choose Windows Desktop Application

Basecode

  • Insert basecode from code sample below
  • Paste above
  //
  //  FUNCTION: MyRegisterClass()
@Lamparter
Lamparter / AdapterPattern-Proposal.cs
Last active October 7, 2024 20:24
Threads API wrapper for .NET response handler examples
// Draft proposal
public class ApiResponse
{
public Dictionary<string, object> Fields { get; set; }
}
public interface IUserAdapter
{
void Adapt(ApiResponse response);
@Lamparter
Lamparter / Install-Certificate.md
Last active August 30, 2024 17:17
Install WinUI app certificate
@Lamparter
Lamparter / statements.md
Created August 18, 2024 09:36
Fluid Documentation

⚡ Fluid Runtime

private - defines anything to be private (assumed)

public - defines something to be exported (explicit)

val - defines a variable

  • var - a mutable variable
  • const - an immutable variable
@Lamparter
Lamparter / ASCII.fl
Last active October 20, 2024 17:18
ASCII script in Fluid
// Large ASCII Art for A-Z, 0-9, and punctuation
// RVSX::Schemas_Riverside.Fluid.Capacitor::IBadFormatting
// RVSX::Schemas_Riverside.Fluid.Capacitor::IObviousTypeDefinitions
// These are to ignore compiler errors about verbose bad formatting/type definitions I may have missed
using System;
public abstract CreatArt(string _text) {
val const Map = data {
'A': [" /\\ ", " / \\ ", "/____\\", "| |", "| |"],