Skip to content

Instantly share code, notes, and snippets.

View tullo-x86's full-sized avatar
🏳️‍⚧️
trans rights are human rights

Daniel Tullemans tullo-x86

🏳️‍⚧️
trans rights are human rights
View GitHub Profile
var items = (await process.InitializeAsync()).ToList();
var runningTasks = new List<Task<Result>>();
foreach (var item in items)
{
// Start this item on the thread pool, and hold onto its task
runningTasks.Add(Task.Run(async () => await process.ProcessAsync(item)));
// If we are at our concurrency limit, await a single task
@tullo-x86
tullo-x86 / MatrixTest.cs
Last active May 28, 2020 19:25
Generating multidimensional xUnit 2 [Theory] tests
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using Xunit;
namespace MultiDimensional.Tests
{
public enum Dimension
@tullo-x86
tullo-x86 / Playlist.hpp
Created September 20, 2022 17:44
Playlist: collapse an arbitrary number of statically-declared, self-initializing objects into a single memory space
//
// Created by tully on 10/2/15.
//
#ifndef HEXPANEL_PLAYLIST_H
#define HEXPANEL_PLAYLIST_H
#include "FastLED.h"
#include <lib8tion.h>