Skip to content

Instantly share code, notes, and snippets.

View eMaringolo's full-sized avatar

Esteban A. Maringolo eMaringolo

View GitHub Profile
@eMaringolo
eMaringolo / keybase.md
Last active September 11, 2019 17:30
Keybase Identity Proof

Keybase proof

I hereby claim:

  • I am emaringolo on github.
  • I am emaringolo (https://keybase.io/emaringolo) on keybase.
  • I have a public key whose fingerprint is A693 D5C7 226E 1254 9132 45E6 AE8F 6B83 81F5 D5AD

To claim this, I am signing this object:

@eMaringolo
eMaringolo / gist:bed9974d70c9ab8c6398149716e22b08
Created December 4, 2019 22:44
ZnClient subclass with cache
ZnClient subclass: #ZnCachingClient
instanceVariableNames: ''
classVariableNames: ''
package: 'Zinc-HTTP-CachingClient'
execute
"Execute the currently set up request to generate a response.
If the request was performed before, retrieve the cached version.
Return the #contents of the response, if any."
@eMaringolo
eMaringolo / main.dart
Last active March 30, 2022 21:55
StreamController not resolving onDone handler when using a StreamTransformer
import 'dart:async';
void main(List<String> arguments) {
var c = StreamController();
var s = c.stream
.transform(StreamTransformer.fromHandlers(handleData: (data, sink) {
sink.add(data);
}, handleDone: (sink) => sink.close()));
s.listen((event) {