Skip to content

Instantly share code, notes, and snippets.

View TornadoTechnology's full-sized avatar
🐡

Tornado Tech TornadoTechnology

🐡
View GitHub Profile
@TornadoTechnology
TornadoTechnology / auto_pull.py
Created September 23, 2025 02:56
Automatically pull all git repositories in the current directory (recursively)
import os
import subprocess
def process(root, dirs, files, path):
result = subprocess.run(['git', '-C', path, 'pull'], capture_output=True, text=True)
print(result.stdout)
if result.returncode != 0:
print(f"Error:\n{result.stderr}")
@TornadoTechnology
TornadoTechnology / Program.cs
Created September 13, 2025 03:39
Access to the C# class before calling the constructor
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
namespace ConsoleApp1;
public static class Program
{
public static void Main()
{
var type = typeof(MyClass);
@TornadoTechnology
TornadoTechnology / benchmark.md
Created April 8, 2025 13:59
LINQ vs foreach .NET 9.0 (raw)

BenchmarkDotNet v0.14.0

Windows 11 (10.0.22631.5039/23H2/2023Update/SunValley3)

AMD Ryzen 5 5600G with Radeon Graphics, 1 CPU, 12 logical and 6 physical cores .NET SDK 9.0.201 [Host] : .NET 9.0.3 (9.0.325.11113), X64 RyuJIT AVX2 DefaultJob : .NET 9.0.3 (9.0.325.11113), X64 RyuJIT AVX2