- Establishing community and contributing guidelines
- Fixing most urgent bugs
- Lock recursion bug
- Memory leak
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; | |
using LiteDB; | |
namespace LiteDBLoadTest; | |
internal class Program | |
{ | |
private static async Task Main(string[] args) | |
{ | |
var cts = new CancellationTokenSource(); |
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 Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
using SourceGeneratorTestHelpers; | |
namespace Generator.Equals.DynamicGenerationTests; | |
public class UnitTest1 | |
{ | |
[Fact] | |
public void Test1() |
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 record GenericArgumentResult(Type RequestedType, Type DirectSubclass, Type[] GenericArguments); | |
public static class GenericTypeHelper | |
{ | |
/// <summary> | |
/// Returns <see cref="TEntity"/> of <see cref="EntityTypeBuilder{TEntity}"/>, | |
/// even from <see cref="EntityTypeBuilderOfEntity"/> : <see cref="EntityTypeBuilder{TEntity}"/>. | |
/// </summary> | |
/// <param name="concreteType">For e.g EntityTypeBuilderOfEntity.</param> | |
/// <param name="genericDefinition">for e.g typeof(<see cref="EntityTypeBuilder{}"/>).</param> |
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
// ==UserScript== | |
// @name OpenAI Chat GPT-4o enforce | |
// @version 1 | |
// @grant none | |
// @description This script enforces the GPT-4o model on the OpenAI Chat website | |
// @match https://chatgpt.com/* | |
// @run-at document-end | |
// ==/UserScript== | |
(function() { |
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 readonly struct BufferOwner<T> : IDisposable | |
{ | |
private readonly T[] _buffer; | |
private readonly ArrayPool<T> _pool; | |
public BufferOwner(int size, ArrayPool<T> pool) | |
{ | |
_buffer = pool.Rent(size); | |
_pool = pool; | |
} |
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 dev = new TeamViewerDevice() | |
{ | |
ApiToken = "APIKEY", | |
}; | |
await dev.GetTeamViewerDevice(); | |
Debugger.Break(); | |
public class TeamViewerDevice | |
{ |
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.Concurrent; | |
namespace JKToolKit.Logging.File.Utils; | |
public abstract class AsyncMutex : IDisposable | |
{ | |
private static ConcurrentDictionary<string, AsyncMutex> _localMutexes = new ConcurrentDictionary<string, AsyncMutex>(); | |
public abstract Task<IDisposable> WaitOneAsync(CancellationToken ct); |
I hereby claim:
- I am jkamsker on github.
- I am jkamsker (https://keybase.io/jkamsker) on keybase.
- I have a public key ASAE3Pbe3Sm3SiIeiXZ8MZ7pm5xLfsqEGXuY4CXIhFM_Tgo
To claim this, I am signing this object:
Proposal: Constructor redirect
Summary: Allow for constructor arguments to be seemingly mirrored by a generic factory method.
Sample: myfactory.Create("param1", "param2", "param3");
class CommandType
NewerOlder