Skip to content

Instantly share code, notes, and snippets.

View Lamparter's full-sized avatar

Lamparter Lamparter

View GitHub Profile
@Lamparter
Lamparter / Sample3.md
Last active July 13, 2024 15:46
Fluid.Runtime Sample: OnlineOrLocalMailDiff
# Sample: Obtains Outlook emails on the Exchange server and compares them with local versions.
# This sample relies on the non-existent Microsoft API, so technically this code could not be run.

import System
import Riverside.Esmerelda.Core.Calculation as Calculation
import Riverside.Esmerelda.Enigma.Encryption as Enigma
import Riverside
import Microsoft
# import System.Windows.Forms as Wpf
@Lamparter
Lamparter / loader.txt
Created April 21, 2023 12:29
Loader symbols for Codespaces
@Lamparter
Lamparter / MSStorefrontAppAwards-FluentHub.md
Last active September 14, 2024 16:15
Microsoft Store app awards FluentHub nomination instructions

Here are the details you need to fill in to nominate FluentHub 😁

App or Game Name: FluentHub

Store URL of app/game you are nominating: https://apps.microsoft.com/detail/9nkb9hx8rjz3

URL to product page on their web site: https://github.com/0x5bfa/FluentHub/blob/135778c1b0a3b6a378f3592f69c3ee7500759a3e/.github/README.md

May the best app win! 🌠

Blog post

@Lamparter
Lamparter / bot.fl
Last active August 15, 2024 21:18
Random script in Fluid
using Discord;
using pyscript pyautogui;
using System;
// Your bot's token from the Discord Developer Portal
val const _token = string "YOUR_DISCORD_BOT_TOKEN_HERE"
// Define the intents
val var _intents = Discord.Intents.Default()
val const _intents.content = bool True // Needed for accessing message content
@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': [" /\\ ", " / \\ ", "/____\\", "| |", "| |"],
@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 / Install-Certificate.md
Last active August 30, 2024 17:17
Install WinUI app certificate
@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 / 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 / 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?)