This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Input; | |
namespace Perspex.MVVM | |
{ | |
public class OpacityCommand : RoutedCommand<object> | |
{ | |
public OpacityCommand(Action<object> command, Predicate<object> predicate) | |
: base(command, predicate) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<Button Content="Test" Command="{Binding LoadProjectCommand}" /> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class AvaloniaObservableExtensions | |
{ | |
public static IObservable<IList<T>> RollingBuffer<T>(this IObservable<Timestamped<T>> @this, TimeSpan buffering) | |
{ | |
return Observable.Create<IList<T>>(o => | |
{ | |
var list = new LinkedList<Timestamped<T>>(); | |
return @this.Subscribe(tx => | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OmniSharp: -v -p 57043 -s C:\develop\repos\helloworldclr | |
dbug: OmniSharp.Startup[0] | |
Loaded OmniSharp.DotNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | |
dbug: OmniSharp.Startup[0] | |
Loaded OmniSharp.DotNetTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | |
dbug: OmniSharp.Startup[0] | |
Loaded OmniSharp.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | |
dbug: OmniSharp.Startup[0] | |
Loaded OmniSharp.MSBuild, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | |
dbug: OmniSharp.Startup[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var source = new Bitmap("sample.jpg"); | |
var pixelData = source.PlatformImpl.GetPixels(); | |
var stride = source.PixelWidth * 4; | |
float value = 1f; | |
IPixelFilter filter = new CompositeFilter(new ContrastFilter(10f), new GreenFilter()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starting Build... | |
clang version 5.0.1 (tags/RELEASE_501/final) | |
Target: x86_64-pc-windows-msvc | |
Thread model: posix | |
InstalledDir: C:\Users\dan\AvalonStudio\AppData\Repos\AvalonStudio.Toolchains.Clang.win-x64.5.0.1-build59-alpha\content\bin | |
[CC 112/164] [PeripheralBoard] CameraTrack.cpp | |
C:\Users\dan\dev\repos\ILMD\PeripheralBoard\PeripheralBoard\CameraTrack.cpp:10:1: error: unknown type name 'xxxx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace ColorMatrix | |
{ | |
public interface IColor | |
{ | |
byte R { get; set; } | |
byte G { get; set; } | |
byte B { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static float Hue2Rgb(float p, float q, float t) | |
{ | |
if (t < 0) t += 1; | |
if (t > 1) t -= 1; | |
if (t < 1.0 / 6.0) return p + (q - p) * 6.0f * t; | |
if (t < 1.0 / 2.0) return q; | |
if (t < 2.0 / 3.0) return p + (q - p) * (2.0f / 3.0f - t) * 6.0f; | |
return p; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Decompiled with JetBrains decompiler | |
// Type: XamlIlLoader.resm_Avalonia_Themes_Default_Button_xaml_assembly_Avalonia_Themes_Default | |
// Assembly: resm_Avalonia_Themes_Default_Button_xaml_assembly_Avalonia_Themes_Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | |
// MVID: 13FAABA2-D0DB-4C6E-85C8-B7A4268C35DE | |
// Assembly location: C:\Users\dan\repos\Avalonia\samples\ControlCatalog.NetCore\bin\Debug\netcoreapp2.0\emit\resm_Avalonia_Themes_Default_Button_xaml_assembly_Avalonia_Themes_Default.dll | |
using Avalonia; | |
using Avalonia.Controls; | |
using Avalonia.Controls.Presenters; | |
using Avalonia.Data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
* Description: | |
* | |
* Author: | |
* Date: 16 November 2016 | |
* | |
*******************************************************************************/ | |
#pragma mark Compiler Pragmas | |
OlderNewer