lang
async
async/await
asynclocal
awaiter
calcellation
channels
configure-await
continuations
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
| const aws = require('aws-sdk'); | |
| const lambda = new aws.Lambda({ | |
| maxRetries: 10, | |
| retryDelayOptions: { | |
| base: 1000 | |
| } | |
| }); | |
| const targets = process.env.TARGETS.split(','); | |
| const warmer = process.env.AWS_LAMBDA_FUNCTION_NAME; |
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
| <wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
| <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeTrailingCommaInMultilineLists/@EntryIndexedValue">SUGGESTION</s:String> | |
| <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeTrailingCommaInSinglelineLists/@EntryIndexedValue">SUGGESTION</s:String> | |
| <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeTypeMemberModifiers/@EntryIndexedValue">SUGGESTION</s:String> | |
| <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeTypeModifiers/@EntryIndexedValue">SUGGESTION</s:String> | |
| <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=BuiltInTypeReferenceStyle/@EntryIndexedValue">SUGGESTION</s:String> | |
| < |
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 ComponentManagement | |
| { | |
| using System; | |
| using Microsoft.Extensions.DependencyInjection; | |
| 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
| using System; | |
| using System.IO; | |
| using System.Threading.Tasks; | |
| using SkiaSharp; | |
| public static class ImageHelper | |
| { | |
| private const double Rotate90 = 90d; | |
| private const double Rotate180 = 180d; |
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 static class TaskExtensions | |
| { | |
| public static async Task<T> WithTimeout<T>(this Task<T> task, int timeout) | |
| { | |
| using var cts = new CancellationTokenSource(); | |
| var completedTask = await Task.WhenAny(task, Task.Delay(timeout, cts.Token)).ConfigureAwait(false); | |
| cts.Cancel(); | |
| return completedTask == task ? task.Result : default; | |
| } | |
| } |
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
| if (!reader.MoveToNextElement(0) || (reader.Name != "Root")) | |
| { | |
| return; | |
| } | |
| while (reader.MoveToNextElement(1)) | |
| { | |
| if (reader.Name == "Group1") | |
| { | |
| while (reader.MoveToNextElement(2)) |
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 ArrayAccessBenchmark50 | |
| { | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Configs; | |
| using BenchmarkDotNet.Diagnosers; | |
| using BenchmarkDotNet.Exporters; | |
| using BenchmarkDotNet.Jobs; |
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" |
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) |