Skip to content

Instantly share code, notes, and snippets.

View Andrew-Hanlon's full-sized avatar

Andrew Hanlon Andrew-Hanlon

View GitHub Profile
public class LimitConcurrencyLevelScheduler : LocalScheduler
{
private readonly ActionBlock<Action> _actionBlock;
public LimitConcurrencyLevelScheduler(int concurrencyLevel = 0, bool singleProducerConstrained = false)
{
var options = new ExecutionDataflowBlockOptions
{
MaxDegreeOfParallelism = concurrencyLevel <= 0 ? 1 : concurrencyLevel,
SingleProducerConstrained = singleProducerConstrained
@arturo182
arturo182 / bom2grouped_csv_jlcpcb.xsl
Last active June 14, 2024 08:32
A KiCad BOM script for generating JLCPCB PCBA-compatible files!
<!--XSL style sheet to convert EESCHEMA XML Partlist Format to grouped CSV BOM Format
Copyright (C) 2014, Wolf Walter.
Copyright (C) 2013, Stefan Helmert.
Copyright (C) 2018, Kicad developers.
Copyright (C) 2019, arturo182.
GPL v2.
Functionality:
Generation of JLCPCB PCBA compatible BOM