Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env php
<?php declare(strict_types=1);
use Siler\Route;
use function Siler\Swoole\{graphql_handler, http};
require_once __DIR__ . '/bootstrap.php';
global $schema, $root_value, $context;
$handler = graphql_handler($schema, $root_value, $context);
import 'package:flutter/material.dart';
import 'package:rxdart/rxdart.dart';
class CounterBloc {
int initialCount = 20;
BehaviorSubject<int> _subjectCounter;
CounterBloc() {
_subjectCounter = new BehaviorSubject<int>.seeded(this.initialCount);
<?php
namespace Notification;
class Notification
{
public function __contruct($title = null, $subject = null, $message = null)
{
$this->title = $title;
$this->subject = $subject;
<?php
interface Support {}
class TechnicalSupport implements Support {}
class FinancialSupport implements Support {}
class AdministrativeSupport implements Support {}