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
| #:package DynamicData@9.4.31 | |
| // --------------------------------------------------------------------------- | |
| // DynamicData cross-cache deadlock: minimal reproduction | |
| // | |
| // Run with .NET 10+ SDK: dotnet run CrossCacheDeadlock.cs | |
| // | |
| // Two SourceCaches feed each other. Two threads edit them at the same time. | |
| // On the current published DynamicData (9.4.31 and earlier) a SourceCache holds | |
| // its internal lock for the *entire* synchronous downstream delivery of a |
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.ComponentModel; | |
| using System.Globalization; | |
| using ReactiveUI.Binding.Observables; | |
| const int iterations = 5_000; | |
| const int mutationsPerIteration = 32; | |
| var firstFailure = -1; | |
| List<string?>? firstFailureSequence = null; | |
| string? firstFailurePropertyAtEnd = null; |
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.ComponentModel; | |
| using ReactiveUI; | |
| using ReactiveUI.Builder; | |
| // ReactiveUI 23.x requires explicit builder initialization before its mixins are usable. | |
| // For a console-only repro we only need the core services -- WithPlatformServices() lives | |
| // in platform packages (WPF, WinUI, Maui, ...) and is not needed here. | |
| RxAppBuilder.CreateReactiveUIBuilder() | |
| .WithCoreServices() | |
| .BuildApp(); |
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.Reactive.Disposables; | |
| using System.Reactive.Linq; | |
| using DynamicData; | |
| namespace DareWare.Utils; | |
| public static class FileSystemObservable | |
| { | |
| public static IObservable<IChangeSet<FileSystemInfo, string>> Create(string path, string filter, bool includeSubDirectories, bool includeError = true) => | |
| Observable.Create<IChangeSet<FileSystemInfo, string>>(observer => |
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
| ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
| // FormatString.h : Standard String Formatting Support | |
| // | |
| // Author Name : | |
| // Darrin W. Cullop (darrin.cullop@outlook.com) | |
| // | |
| // License : | |
| // CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/) | |
| // | |
| // Abstract : |
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
| ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
| // DebuggingHelpers.h : Debug Logging on Windows in Modern C++ | |
| // | |
| // Author Name : | |
| // Darrin W. Cullop (darrin.cullop@outlook.com) | |
| // | |
| // License : | |
| // CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/) | |
| // | |
| // Abstract : |
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; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace SwgohHelpApi | |
| { |
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; | |
| using System.Runtime.InteropServices; | |
| namespace DareWare.Utils | |
| { | |
| /// <summary> | |
| /// High Resolution Timer Class. Uses the Win32 API to create a timer | |
| /// that is as accurate as the system clock, down to microseconds | |
| /// </summary> | |
| public class HiResTimer : IComparable<HiResTimer>, IEquatable<HiResTimer> |
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
| <div class="container"> | |
| <div class="well container-fluid"> | |
| <div class="row"> | |
| <div class="col-xs-12 col-sm-6"> | |
| <div class="h1 rbBase rainbowShadows">Hello, World!</div> | |
| <div class="h3 rbBase rbStacked">Hello, World!</div> | |
| <div class="h2 rbBase rbFuzz">Hello, World!</div> | |
| <div class="h1 rbBase rbFuzz2 rbTextDark">Hello, World!</div> | |
| </div> | |
| <div class="col-xs-12 col-sm-6"> |
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
| // Quick and Dirty file for generating Rainbowized CSS scripts | |
| // This could be done with a CSS pre-parser like SCSS or LESS or whatever, but | |
| // for now, it is what it is. | |
| function units(n, units) { | |
| n = parseInt(n); | |
| return n ? n.toString() + units : 0; | |
| } | |
| function unitsF(n, units, digits) { |
NewerOlder