Skip to content

Instantly share code, notes, and snippets.

@adospace
adospace / MainPage.cs
Last active December 9, 2023 14:33
MauiReactor + Fluxor POC
class MainPage : Component
{
protected override void OnMounted()
{
var store = Services.GetRequiredService<IStore>();
store.InitializeAsync().Wait();
var state = Services.GetRequiredService<IState<CounterState>>();
state.StateChanged += State_StateChanged;
@adospace
adospace / ListChangesPerfTest.cs
Created February 21, 2019 14:28
Benchmark of different list comparison implementation
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ListChangesPerfTest
{
Id Title Content Claps
799f1577-2e5b-49cd-9b05-4648415ea5f7 My new Post Amazing post with wornderful images and code! 0
Id Title Content Claps
799f1577-2e5b-49cd-9b05-4648415ea5f7 My new Post Amazing post! 0
{
"Changes": [
{
"Operation" : "I",
"Id" : "799f1577-2e5b-49cd-9b05-4648415ea5f7",
"Title" : "My new Post",
"Content" : "Amazing post!",
"Claps" : 0
}]
}
799f1577-2e5b-49cd-9b05-4648415ea5f7 My new Post Amazing post! 0
Id Title Content Claps
@adospace
adospace / 0_reuse_code.js
Created May 4, 2017 07:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console