This file contains hidden or 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 Android.App; | |
using Android.Content.PM; | |
using Android.OS; | |
using Android.Support.V7.App; | |
using Android.Views; | |
using Xamarin.Forms.Platform.Android; | |
[Activity( | |
Theme = "@style/MainTheme", |
This file contains hidden or 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
<?xml version="1.0"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<GenerateFileName>$(AssemblyName).sha256</GenerateFileName> | |
</PropertyGroup> | |
<!-- For build output --> | |
<Target Name="GenerateGetCopyToOutputDirectoryItems" | |
BeforeTargets="GetCopyToOutputDirectoryItems"> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- Property --> | |
<PropertyGroup> | |
<SmartDataAccessorTargetName>$(AssemblyName).DataAccessor</SmartDataAccessorTargetName> | |
<SmartDataAccessorAssembly>$(SmartDataAccessorTargetName).dll</SmartDataAccessorAssembly> | |
<SmartDataAccessorDebugSymbol>$(SmartDataAccessorTargetName).pdb</SmartDataAccessorDebugSymbol> | |
</PropertyGroup> |
This file contains hidden or 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
class Program | |
{ | |
static async Task Main(string[] args) | |
{ | |
try | |
{ | |
await Task.Run(async () => await LongProcessAsync()); | |
} | |
catch (Exception e) | |
{ |
This file contains hidden or 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
// <auto-generated /> | |
namespace Example.ConsoleApplication.Accessor | |
{ | |
using System; | |
using System.Linq; | |
using static Smart.Data.Accessor.Scripts.ScriptHelper; | |
public sealed class IExampleAccessor_Impl : global::Example.ConsoleApplication.Accessor.IExampleAccessor | |
{ | |
private readonly global::Smart.Data.Accessor.Engine.ExecuteEngine _engine; |
This file contains hidden or 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
INSERT INTO Data (Id, Name) VALUES | |
/*% for (var i = 0; i < list.Count; i++) { */ | |
/*% if (i != 0) { */ | |
/*! , */ | |
/*% } */ | |
/*% var entity = list[i]; */ | |
(/*@ entity.Id */1, /*@ entity.Name */'test') | |
/*% } */ |
This file contains hidden or 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.Linq.Expressions; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Configs; | |
using BenchmarkDotNet.Diagnosers; | |
using BenchmarkDotNet.Exporters; | |
using BenchmarkDotNet.Jobs; | |
using BenchmarkDotNet.Running; |
This file contains hidden or 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 struct WrapEnumerator<T> : IEnumerator<T> | |
{ | |
private readonly IEnumerator<T> source; | |
private bool first; | |
public WrapEnumerator(IEnumerator<T> source) | |
{ | |
this.source = source; | |
first = true; |
This file contains hidden or 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
namespace OmronSensorTest | |
{ | |
using System; | |
using System.Buffers.Binary; | |
using System.IO.Ports; | |
using System.Threading; | |
public static class Program | |
{ | |
public static void Main(string[] args) |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage | |
x:Class="SideMenuTest.MainPage" | |
xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> | |
<AbsoluteLayout> | |
<StackLayout | |
AbsoluteLayout.LayoutBounds="0,0,1,1" | |
AbsoluteLayout.LayoutFlags="All" |