Skip to content

Instantly share code, notes, and snippets.

View pyetti's full-sized avatar

Peter Yetti pyetti

View GitHub Profile
@pyetti
pyetti / stream_transformer.dart
Created August 6, 2019 22:38
Stream transforms in Dart are too complicated and seem to require the below over and over, if it's not generic. The file below should be useable in any Dart project to transform streams.
import 'dart:async';
/*
* https://api.flutter.dev/flutter/dart-async/Stream/Stream.eventTransformed.html
*
* <S, T>
* S ==> Snapshot type (DocumentSnapshot, QuerySnapshot, et. al.)
* T ==> The type to be returned (Event, List<EventMedia>, et. al.)
*
* This should probably never need to change. It seems to work pretty well.
@pyetti
pyetti / file1.txt
Created July 7, 2018 23:26
CS496 Gist Creation Test
This is the content of file1.txt
@pyetti
pyetti / file1.txt
Created July 7, 2018 23:25
CS496 Gist Creation Test
This is the content of file1.txt
@pyetti
pyetti / file1.txt
Created July 7, 2018 23:21
CS496 Gist Creation Test
This is the content of file1.txt
@pyetti
pyetti / file1.txt
Last active July 8, 2018 00:07
the description for this gist
updated file contents last time
Verifying my Blockstack ID is secured with the address 15px5Jv7EFVydG9uBpBUnfffvKo5HjvYnP
Verifying that "payetti.id" is my Blockstack ID. https://onename.com/payetti