Skip to content

Instantly share code, notes, and snippets.

View Qonstrukt's full-sized avatar
🎯
Focusing

Stefan Moonen Qonstrukt

🎯
Focusing
View GitHub Profile
@ktarila
ktarila / AddMapEntityRector.php
Created December 31, 2024 15:50
Rector rule to fix symfony 7.1 automatic mapping of route parameters into Doctrine entities deprecation
<?php
declare(strict_types=1);
namespace Utils\Rector\Rector;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Attribute;
use PhpParser\Node\AttributeGroup;
@omnibs
omnibs / 101-rx-samples.md
Last active March 22, 2025 11:58
101 Rx Samples in C#

101 Rx Samples in C#

This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.

Here's the unedited original, translated to Github Markdown glory:

101 Rx Samples - a work in progress

#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten