- Settings -> Windows Update
- Install all updates
- launch Windows Powershell as administrator and execute:
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
namespace Ghostly.Utilities | |
{ | |
// Emoji list borrowed from https://github.com/lunet-io/markdig/blob/25959174d521c7f4458fa7b340d58a4ac136fa30/src/Markdig/Extensions/Emoji/EmojiParser.cs | |
public static class EmojiReplacer | |
{ | |
private static Regex _regex; | |
private static Dictionary<string, string> _lookup; |
public class PackIconControl : ContentControl | |
{ | |
public PackIconControl() | |
{ | |
SizeChanged += OnSizeChanged; | |
} | |
public static readonly DependencyProperty PackIconKindProperty = | |
DependencyProperty.Register(nameof(PackIconKind), typeof(object), typeof(PackIconControl), | |
new PropertyMetadata(default(object), PackIconKindPropertyChangedCallback)); |
FROM mcr.microsoft.com/dotnet/core/runtime:3.0 AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build | |
WORKDIR /src | |
COPY ["WebApplication4/WebApplication4.csproj", "WebApplication4/"] | |
RUN dotnet restore "WebApplication4/WebApplication4.csproj" | |
COPY . . |
/****************************************************************************** | |
* Name: Taskbar.cs | |
* Description: Class to get the taskbar's position, size and other properties. | |
* Author: Franz Alex Gaisie-Essilfie | |
* based on code from https://winsharp93.wordpress.com/2009/06/29/find-out-size-and-position-of-the-taskbar/ | |
* | |
* Change Log: | |
* Date | Description | |
* -------------|-------------------------------------------------------------- | |
* 2017-05-16 | Initial design |
[CmdletBinding(SupportsShouldProcess=$True)] | |
Param( | |
[int]$CutoffDays = 150 | |
) | |
$cutoffDate = (Get-Date).AddDays(-$CutoffDays) | |
# get path to cached NuGet packages ("%USERPROFILE$\.nuget\packages") | |
$nugetCachePath = Join-Path "$([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::UserProfile))" ".nuget\packages" |
package ys | |
import groovy.util.logging.Slf4j | |
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.scheduling.annotation.* | |
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler | |
import org.springframework.test.context.ContextConfiguration |
using System.Windows; | |
using System.Windows.Controls; | |
namespace WpfApplication2 { | |
public partial class MainWindow : Window { | |
public MainWindow() { | |
InitializeComponent(); | |
var svg = new SkiaSharp.SKSvg(); | |
var picture = svg.Load("Tiger.svg"); |
namespace Analogy | |
{ | |
/// <summary> | |
/// This example shows that a library that needs access to target .NET Standard 1.3 | |
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
/// </summary>INetCoreApp10 | |
class Example1 | |
{ | |
public void Net45Application(INetFramework45 platform) |
/* | |
* Provides DWM Color as a Bindable Property | |
* Add the Namespace | |
* xmlns:dwmAero="clr-namespace:MahApps.Metro.DWMAero" | |
* And a Resource | |
* <dwmAero:AeroColorProvider x:Key="AeroColorProvider" /> | |
* Then Bind on the Properties (110%,95%,80%,65%,50% Respectively) | |
* Color="{Binding Source={StaticResource AeroColorProvider}, Path=Highlight}" | |
* Color="{Binding Source={StaticResource AeroColorProvider}, Path=Accent}" | |
* Color="{Binding Source={StaticResource AeroColorProvider}, Path=Accent2}" |