- Establishing community and contributing guidelines
- Fixing most urgent bugs
- Lock recursion bug
- Memory leak
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 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 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
| // ==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 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 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 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 Microsoft.CodeAnalysis; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using SourceGeneratorTestHelpers; | |
| namespace Generator.Equals.DynamicGenerationTests; | |
| public class UnitTest1 | |
| { | |
| [Fact] | |
| public void Test1() |
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.Diagnostics; | |
| using LiteDB; | |
| namespace LiteDBLoadTest; | |
| internal class Program | |
| { | |
| private static async Task Main(string[] args) | |
| { | |
| var cts = new CancellationTokenSource(); |
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.Reflection; | |
| public class DependencyNode | |
| { | |
| public string ServiceType { get; set; } = string.Empty; | |
| public string? ImplementationType { get; set; } | |
| public string Lifetime { get; set; } = string.Empty; | |
| public string RegistrationMethod { get; set; } = "Unknown"; // e.g., Type, Factory, Instance, Collection | |
| public List<DependencyNode> Dependencies { get; set; } = new List<DependencyNode>(); | |
| public bool IsCycleDetected { get; set; } = false; |
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
| /** | |
| * This script automates the process of deleting ALL tasks, starting from the last one. | |
| * It is designed to be run in the browser's developer console. | |
| */ | |
| async function deleteAllTasksReverse() { | |
| // 1. Find all task options buttons. | |
| const allOptionsButtons = document.querySelectorAll("swebot-task-tile > swebot-task-options > button"); | |
| if (allOptionsButtons.length === 0) { | |
| console.log("No tasks found to delete."); |
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
| #!/usr/bin/env python3 | |
| import json | |
| import os | |
| import shlex | |
| import subprocess | |
| from datetime import datetime, timedelta, timezone | |
| def run(cmd): | |
| # Explicitly pass the environment, which can solve obscure issues on Windows. |
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
| #!/bin/bash | |
| # Parameterizable .NET setup script with parallel execution, smart caching, and tool integration. | |
| # install with eg: curl -sSL ... | bash -s -- -v 7.0 -t "dotnet-ef,dotnet-aspnet-codegenerator,dotnet-try" | |
| set -e | |
| # --- Default Configuration --- | |
| DOTNET_VERSION="8.0" # Default .NET version | |
| APP_DIR="/app" # Default application directory | |
| # Default global tools. If a tool name is passed without a version, | |
| # it will be automatically pinned to the major .NET version being installed (e.g., "dotnet-ef" -> "dotnet-ef:8.*"). |