Skip to content

Instantly share code, notes, and snippets.

View Lamparter's full-sized avatar

Lamparter Lamparter

View GitHub Profile
@riverar
riverar / MainWindow.xaml.cs
Last active March 6, 2025 13:35
Sample code to display the Sharing Configuration UI (i.e., Give access to... > Specific people...)
using System.Runtime.InteropServices;
using Windows.Win32;
using Windows.Win32.Foundation;
using Windows.Win32.UI.Shell;
using System.Windows;
using System.Windows.Interop;
namespace WpfApp10
{
//
@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);
@WamWooWam
WamWooWam / .net-standard-2.0-uwp.md
Last active February 12, 2025 16:17
How to use .NET Standard 2.0 under UWP <= 10.0.15063

Enabling .NET Standard support on UWP apps targeting 15063 or below is relatively simple.

Step 1

Set your project's TargetPlatformMinVersion to anything above 15063, for this I've always used 16299 but other SDKs should work the same way

step-1

Step 2

Open your .csproj file in a text editor (right click, "Unload project", right click again, "Edit project file"), and add the following 2 lines to the first property group.

@fourohfour
fourohfour / smh-api.md
Created November 6, 2016 13:25
Information about the Show My Homework API

Show My Homework API


File detailing what I've worked out so far from investigating the Show My Homework API.

API Requests

API requests are made in the form of a HTTPS GET request to the SMH API endpoint.

https://api.showmyhomework.co.uk/api/{request}

@rakhimoni
rakhimoni / intractions.doc
Created June 1, 2016 08:36
How to install appxbundle on windows phone
To install appxbundle on windows phone via computer we need to make sure the windows device is unlocked and Microsoft visual studio is installed in the computer. Check the following steps:
Step 1. Connect the windows phone to the computer. Open Microsoft visual studio> Navigate to Tools> Windows Phone 8.1 > Application Deployment
Step 2. Select the target to device and browse the appxbundle from computer.
Step 3. After waiting some time, the application deployment window will provide the app completion status. Then press Deploy button and check in the windows phone device .