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
{ | |
"type": "excalidraw", | |
"version": 2, | |
"source": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor", | |
"elements": [ | |
{ | |
"id": "8ik7kpr0EhXC1TdRAjZhM", | |
"type": "ellipse", | |
"x": 500, | |
"y": 400.42667125531193, |
This file has been truncated, but you can view the full file.
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
// <copyright file="Vsync.cs" company="Kenneth P. Birman"> | |
// Vsync System, V2.2.$Rev: 2095 $, Developed by Kenneth P. Birman, (c) 2010 - 2014. All rights reserved. | |
// This code is subject to copyright and other intellectual property restrictions and | |
// may be used only under license from Dr. Birman or his designated agents. | |
// | |
// It is a violation of international intellectual property protection laws to remove this notice. | |
// | |
// Dr. Birman has elected to grant Cornell University and other researchers the right to experiment with Vsync and | |
// to create a derived version Vsync V2.2.xxxx (and other future versions, using the same version numbering scheme) | |
// |
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.Collections.Generic; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
namespace Orleans.Runtime.Placement.Rebalancing; | |
// Implementation of "Filtered Space-Saving" from "Finding top-k elements in data streams" | |
// by Nuno Homem & Joao Paulo Carvalho (https://www.hlt.inesc-id.pt/~fmmb/references/misnis.ref0a.pdf). | |
internal abstract class FrequencyFilter<TKey>(int capacity) where TKey : notnull | |
{ |
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 BitFaster.Caching; | |
using BitFaster.Caching.Lru; | |
using Microsoft.Extensions.Options; | |
using Orleans.Configuration; | |
using Orleans.Runtime; | |
using Orleans.Runtime.GrainDirectory; | |
using System.Diagnostics.CodeAnalysis; | |
namespace Orleans.BitFasterCaching.GrainDirectoryCache; |
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
#nullable enable | |
using Orleans.Runtime; | |
namespace MyGrains; | |
public class MyLongRunningReminderGrain : Grain, IRemindable | |
{ | |
private readonly CancellationTokenSource _shutdownCancellation = new(); | |
private Task? _backgroundTask; |
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.Diagnostics.Tracing; | |
using System.Security.Cryptography; | |
using System.Text; | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var listener = new SystemRuntimeEventCounterListener(); | |
Task.Run(async () => |
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
{ | |
"name": "Dactyl Manuform (5x7)", | |
"vendorProductId": 1145910583, | |
"macros": [ | |
"{KC_LCTL,KC_LEFT}", | |
"{KC_LCTL,KC_DOWN}", | |
"{KC_LCTL,KC_UP}", | |
"{KC_LCTL,KC_RGHT}", | |
"", | |
"", |
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
namespace YOUR_NAMESPACE | |
{ | |
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.ServiceFabric.Services.Communication.Runtime; | |
/// <summary> | |
/// Service Fabric <see cref="ICommunicationListener"/> which integrates with an <see cref="IHost"/> instance. |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net6.0</TargetFramework> | |
<RootNamespace>ObserverWithReturn</RootNamespace> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> |
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
Ready | |
****** START compiling Hagar.Buffers.Reader`1[ReadOnlySequence`1][System.Buffers.ReadOnlySequence`1[System.Byte]]:ReadByte():ubyte:this (MethodHash=011f4f14) | |
Generating code for Windows x64 | |
OPTIONS: compCodeOpt = BLENDED_CODE | |
OPTIONS: compDbgCode = true | |
OPTIONS: compDbgInfo = true | |
OPTIONS: compDbgEnC = false | |
OPTIONS: compProcedureSplitting = false | |
OPTIONS: compProcedureSplittingEH = false | |
IL to import: |
NewerOlder