Skip to content

Instantly share code, notes, and snippets.

View amis92's full-sized avatar

Amadeusz Sadowski amis92

View GitHub Profile
@amis92
amis92 / MarkdownTextBlock Image link.md
Last active March 30, 2017 16:03
Resources to report issues with MarkdownTextBlock
@amis92
amis92 / LolBoolUnion.cs
Created May 9, 2017 15:13
A bool that's neither true nor false :O
using System;
using System.Runtime.InteropServices;
public class Test
{
public static void Main()
{
Console.WriteLine($"false as byte: {new LolBoolUnion(false).ByteValue}");
Console.WriteLine($"true as byte: {new LolBoolUnion(true).ByteValue}");
Console.WriteLine($"0 as bool: {new LolBoolUnion(0).BoolValue}");
@amis92
amis92 / macos-links.md
Created July 6, 2017 15:22
Useful links and tips for MacOS
@amis92
amis92 / VS links.md
Last active October 19, 2017 09:14
Interesting notes and links for Visual Studio
@amis92
amis92 / ExpandUriTemplate.csx
Created June 13, 2018 13:09
This dotnet-script script writes Uri Template expansion to output for GitHub Upload Release Asset template
// This dotnet-script script writes Uri Template expansion to output for GitHub Upload Release Asset template
#r "nuget: Earl, 0.1.2"
using Earl;
var template = new UriTemplate(Args[0]);
var result = template.Expand(new{ name = Args[1] });
Console.WriteLine(result);
@amis92
amis92 / wsus.md
Created June 25, 2018 10:52
WSUS use Windows Update

Code listing from blog post:

<PropertyGroup>
  <TempFolder>$([System.IO.Path]::GetTempPath())$([System.Guid]::NewGuid())</TempFolder>
@amis92
amis92 / LoginResource.cs
Last active June 28, 2018 11:41 — forked from HaloFour/LoginResource.cs
Data Classes
using System;
using System.Collections.Generic;
/*
* public data class LoginResource
* {
* public string Username { get; }
* public string Password { get; }
* public bool RememberMe { get; } = true;
* }