Skip to content

Instantly share code, notes, and snippets.

View purplenoodlesoop's full-sized avatar
🔮
Building

Yakov K. purplenoodlesoop

🔮
Building
View GitHub Profile
@omnibs
omnibs / three-layer-haskell-cake.hs
Created September 18, 2021 14:13
ReaderT Pattern example
{-
This is a port of https://jordanmartinez.github.io/purescript-jordans-reference-site/content/21-Hello-World/05-Application-Structure/src/02-MTL/32-The-ReaderT-Capability-Design-Pattern.html
There was no simple, working example of the ReaderT pattern in Haskell
-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
import qualified Control.Monad.IO.Class as MonadIO
import qualified Control.Monad.Reader as Reader
import Prelude
@PlugFox
PlugFox / real_getx_benchmark.dart
Last active February 10, 2022 18:44
Real GetStream benchmark test
/// How to run
/// ```bash
/// flutter test --concurrency=1 --platform tester .\test\real_benchmark.dart
/// flutter test --concurrency=1 --platform chrome .\test\real_benchmark.dart
/// ```
import 'dart:async';
import 'package:benchmark_harness/benchmark_harness.dart';
import 'package:flutter_test/flutter_test.dart';
@PlugFox
PlugFox / dart.code-snippets
Last active February 5, 2024 17:24
@dart-lang & @flutter Visual Studio Code snippets by @PlugFox
{
"Changelog unreleased": {
"scope": "md, markdown",
"prefix": "changelog_unreleased",
"description": "Changelog unreleased",
"body": [
"# Unreleased",
"+ added: ${0}",
"+ changed: ",
"+ deprecated: ",