Skip to content

Instantly share code, notes, and snippets.

View mattleibow's full-sized avatar
🏠
Working from home

Matthew Leibowitz mattleibow

🏠
Working from home
View GitHub Profile
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $SourceDir,
[Parameter(Mandatory=$true)]
[String] $DestinationDir
)
$ErrorActionPreference = "Stop"
// All Vec have the same simple memory layout, the same as `T vec[N]`.
template <int N, typename T>
struct alignas(N * sizeof(T)) Vec {
static_assert((N& (N - 1)) == 0, "N must be a power of 2.");
static_assert(sizeof(T) >= alignof(T), "What kind of crazy T is this?");
Vec<N / 2, T> lo, hi;
// Methods belong here in the class declaration of Vec only if:
using System;
namespace ConsoleApp7
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("My Cool App!");
Console.WriteLine("There are some options:");
=== Visual Studio Community 2019 for Mac ===
Version 8.7.8 (build 4)
Installation UUID: 2eb6e1aa-2d90-4d25-a3e7-1b5e50a5b074
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version: 612000093
=== Mono Framework MDK ===
Microsoft Visual Studio Enterprise 2019 (2)
Version 16.7.5
VisualStudio.16.Release/16.7.5+30523.141
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Enterprise
Visual C++ 2019 00435-60000-00000-AA086
Microsoft Visual C++ 2019
Xamarin.Essentials.FileSystem:
AppDataDirectory /data/user/0/com.companyname.app2/files
CacheDirectory /data/user/0/com.companyname.app2/cache
Environment.GetFolderPath:
Desktop /data/user/0/com.companyname.app2/files/Desktop
Programs
MyDocuments /data/user/0/com.companyname.app2/files
MyDocuments /data/user/0/com.companyname.app2/files
Favorites
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<FirstParty Include="Xamarin.Android.*.dll" />
<FirstParty Include="Xamarin.AndroidX.*.dll" />
<FirstParty Include="Xamarin.Google.Android.Material.dll" />
<FirstParty Include="androidx-migrator.dll" />
</ItemGroup>
<ItemGroup>
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="ViewScalingTranslatingTests.MainPage">
<ContentPage.Resources>
<ResourceDictionary>
<Style TargetType="Button">
<Setter Property="HorizontalOptions" Value="Start" />
<Setter Property="WidthRequest" Value="100" />
using System;
using System.Collections;
using System.Collections.Generic;
using System.Windows.Input;
using SkiaSharp.Extended.Controls;
using Xamarin.Forms;
namespace SkiaSharpDemo.Demos
{
public partial class ConfettiPage : ContentPage
WARNING: Unable to find AndroidX type for .NET type Android.Support.Constraints.BuildConfig.
WARNING: Unable to find AndroidX type for .NET type Android.Support.Constraints.Solver.ArrayVariables.
WARNING: Unable to find AndroidX type for .NET type Android.Support.Palette.Additions.
WARNING: Unable to find AndroidX type for .NET type Android.Support.V4.Media.Session.MediaSessionCompatIMediaSessionImplExtensions.
WARNING: Unable to find AndroidX type for .NET type Android.Support.V4.Text.TextDirectionHeuristicsCompatITextDirectionAlgorithmExtensions.
WARNING: Unable to find AndroidX type for .NET type Android.Support.V4.Widget.CursorFilterICursorFilterClientExtensions.
WARNING: Unable to find AndroidX type for .NET type AndroidX.HeifWriter.HeifEncoder.EncoderCallback.
WARNING: Unable to find AndroidX type for .NET type AndroidX.HeifWriter.HeifWriter.HeifCallback.
WARNING: Unable to find AndroidX type for .NET type AndroidX.HeifWriter.HeifWriter.ResultWaiter.
WARNING: Unable to find AndroidX type for .NET type A