Skip to content

Instantly share code, notes, and snippets.

@dima91
dima91 / MainWindow.axaml
Created August 28, 2025 10:24
Observer pattern among two ViewModels using Avalonia and ReactiveUI frameworks
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:AvaloniaObserver.ViewModels"
xmlns:views="using:AvaloniaObserver.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="AvaloniaObserver.Views.MainWindow"
x:DataType="vm:MainWindowViewModel"
Icon="/Assets/avalonia-logo.ico"
@dima91
dima91 / baseContentManagementContract.sol
Created August 17, 2018 10:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
import "./catalogSmartContract.sol";
contract BaseContentManagementContract {
// Enum that describe type of access which an user has
enum AccessType {noneAccess, standardAccess, premiumAccess}
@dima91
dima91 / baseContentManagementContract.sol
Created August 16, 2018 16:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
import "./catalogSmartContract.sol";
contract BaseContentManagementContract {
// Enum that describe type of access which an user has
enum AccessType {noneAccess, standardAccess, premiumAccess}
@dima91
dima91 / baseContentManagementContract.sol
Created August 14, 2018 18:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
import "./catalogSmartContract.sol";
contract BaseContentManagementContract {
// Enum that describe type of access which an user has
enum AccessType {noneAccess, standardAccess, premiumAccess}
@dima91
dima91 / baseContentManagementContract.sol
Created June 14, 2018 23:41
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
import "./catalogSmartContract.sol";
contract BaseContentManagementContract {
// Enum that describe type of access which an user has
enum AccessType {noneAccess, standardAccess, premiumAccess}
@dima91
dima91 / baseContentManagementContract.sol
Created June 14, 2018 17:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
import "./catalogSmartContract.sol";
contract BaseContentManagementContract {
// Enum that describe type of access which an user has
enum AccessType {noneAccess, standardAccess, premiumAccess}
@dima91
dima91 / baseContentManagementContract.sol
Created June 13, 2018 21:17
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
import "./catalogSmartContract.sol";
contract BaseContentManagementContract {
// Enum that describe type of access which an user has
enum AccessType {noneAccess, standardAccess, premiumAccess}
@dima91
dima91 / baseContentManagementContract.sol
Created June 11, 2018 21:23
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
import "./catalogSmartContract.sol";
contract BaseContentManagementContract {
// Enum that describe type of access which an user has
enum AccessType {noneAccess, standardAccess, premiumAccess}
@dima91
dima91 / baseContentManagementContract.sol
Created June 10, 2018 13:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
import "./catalogSmartContract.sol";
contract BaseContentManagementContract {
// Enum that describe type of access which an user has
enum AccessType {noneAccess, standardAccess, premiumAccess}
@dima91
dima91 / baseContentManagementContract.sol
Created June 10, 2018 13:19
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
import "./catalogSmartContract.sol";
contract BaseContentManagementContract {
// Enum that describe type of access which an user has
enum AccessType {noneAccess, standardAccess, premiumAccess}