This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>TradeIt oAuth Login</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"/> | |
<meta name="apple-mobile-web-app-capable" content="yes"/> | |
<style> | |
html { | |
font-family: sans-serif; | |
-ms-text-size-adjust: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub global activate protoc_plugin | |
protoc --dart_out=. addressbook.proto /usr/local/Cellar/protobuf/3.7.1/include/google/protobuf/timestamp.proto | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flutter run -d chrome --release --dart-define=FLUTTER_WEB_USE_SKIA=true | |
flutter create --org org.premiumapp -i swift -a kotlin --description 'description' app_name | |
flutter create --org ru.emc.flutter.qr -i swift -a kotlin --description 'flutter emc application' flutter_emc_qr | |
flutter create --org ru.finam -i swift -a kotlin --description 'grpc chat widget' txchatwidget | |
flutter create -t module --org ru.finam -i swift -a kotlin --description 'grpc chat widget library' txchatwidget |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:simple_playground/algo/find_circle_road.dart'; | |
void main() { | |
print(findCircularRoad(input1)); | |
print(findCircularRoad(input2)); | |
print(findCircularRoad(input3)); | |
print(findCircularRoad(input4)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:bloc/bloc.dart'; | |
import 'package:tps_mobile_combined_maximo_app/claims/create_clame/bloc/export.dart'; | |
import 'package:tps_mobile_combined_maximo_app/data/model/claims/claim_co.dart'; | |
import 'package:tps_mobile_combined_maximo_app/data/repositories/local_storage.dart'; | |
import 'package:tps_mobile_combined_maximo_app/global/bloc/export.dart'; | |
class CreateClaimBloc extends Bloc<CreateClaimEvent, CreateClaimState> { | |
final GlobalBloc globalBloc; | |
CreateClaimBloc(this.globalBloc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:meta/meta.dart'; | |
import 'package:tps_mobile_combined_maximo_app/global/bloc/export.dart'; | |
@immutable | |
abstract class GlobalState {} | |
class GlobalMessageState extends GlobalState{ | |
final GlobalMessage message; | |
GlobalMessageState(this.message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:bloc/bloc.dart'; | |
import 'package:tps_mobile_combined_maximo_app/data/model/user_state/member_user_state.dart'; | |
import 'package:tps_mobile_combined_maximo_app/data/repositories/local_storage.dart'; | |
import 'package:tps_mobile_combined_maximo_app/global/bloc/export.dart'; | |
class GlobalBloc extends Bloc<GlobalEvent, GlobalState> { | |
@override | |
GlobalState get initialState => GlobalStateUnauthenticated(); | |
@override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Iterable<int> range({int from = 0, int to}) sync* { | |
for (int i = from; i < to; ++i) { | |
yield i; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add path example | |
echo 'export PATH="$PATH:/usr/lib/dart/bin"' >> ~/.bashrc | |
source .bashrc | |
# install dart https://www.dartlang.org/tools/sdk#install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CounterState { | |
final int counter; | |
CounterState._(this.counter); | |
factory CounterState.nextState(int times) => CounterState._(times); | |
} | |
class CounterBloc extends Bloc<CounterEvent, CounterState> { | |
@override | |
CounterState get initialState => CounterState.nextState(0); |