I hereby claim:
- I am benoitjadinon on github.
- I am benoitjadinon (https://keybase.io/benoitjadinon) on keybase.
- I have a public key ASB-I4oxAigtmDfVCqOjjiXEhPhhQ_ERLILKc6Fu22dfJAo
To claim this, I am signing this object:
| @JS() | |
| library tv.js; | |
| import "package:js/js.dart"; | |
| @JS("TradingView.widget") | |
| class widget { | |
| external factory widget(WidgetOptions options); | |
| } |
| import 'package:flutter/widgets.dart'; | |
| // (c) Didier Boelens | |
| // https://www.didierboelens.com/2018/12/reactive-programming---streams---bloc---practical-use-cases/ | |
| Type _typeOf<T>() => T; | |
| abstract class BlocBase { | |
| void dispose(); | |
| } |
| class BehaviorStreamBuilder<T> extends StreamBuilder<T> | |
| { | |
| BehaviorStreamBuilder({ | |
| Key key, | |
| BehaviorSubject<T> stream, | |
| @required AsyncWidgetBuilder<T> builder | |
| }) : assert(builder != null), | |
| super | |
| ( | |
| key: key, |
| import 'package:cloud_firestore/cloud_firestore.dart'; | |
| import 'jsonable.dart'; | |
| class FireBaseApi { | |
| final String path; | |
| final Firestore _db = Firestore.instance; | |
| CollectionReference _ref; |
I hereby claim:
To claim this, I am signing this object:
| extension StreamExtensions<T> on Stream<T> { | |
| /// usage: | |
| /// userStream | |
| /// //.breakpoint() // to break on ALL events of the stream | |
| /// .breakpoint(prefix:'user', whenKind(k) => k == EventKind.OnResume) | |
| /// .listen(); | |
| Stream<T> breakpoint({ | |
| String prefix, | |
| String message, |
| //Copyright (C) 2012 Sergey Akopkokhyants. All Rights Reserved. | |
| //Author: akserg | |
| /// Emulation of Java Enum class. | |
| /// | |
| /// Example: | |
| /// | |
| /// class Meter<int> extends Enum<int> { | |
| /// |
| void main() { | |
| final pairs = [ | |
| 'BTC/USDT', | |
| 'BTCD/USDT', | |
| 'BTC/USD', | |
| 'USDT/BTC', | |
| ]; | |
| final search = 'BTCUS'; | |
| final r = search.replaceAll(' ', '').split('').join('.*?'); |
A int stepper exercise (from this great talk)
The goal is to compare technologies using a reactive form that has a 2-way twist (value can be changed manually, and be changed from different sources) results will be graded in terms of code readabilty and number of redraws needed
| model: | |
| version: 1 | |
| kind: Table | |
| columns: [] | |
| pluginVersion: 1.0.0 | |
| summaries: | |
| Unique: values.unique().length | |
| Total: values.reduce(number(acc)+number(value), 0).toFixed(2) | |
| filters: | |
| and: |