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
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "sync/atomic" | |
| ) | |
| type Application struct { | |
| RequestCount uint64 |
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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/docker/docker/api/types" | |
| "github.com/docker/docker/client" | |
| "time" | |
| ) |
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
| package main | |
| import ( | |
| "fmt" | |
| "net/http/httputil" | |
| "net/url" | |
| "sync" | |
| ) | |
| type backend struct { |
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
| package main | |
| import ( | |
| "bytes" | |
| "flag" | |
| "image" | |
| "image/color" | |
| "image/draw" | |
| "image/jpeg" | |
| "log" |
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
| for i in {1..100}; do echo $i && curl "https://personal-code-search.herokuapp.com/" >> /tmp/output.log && sleep 300; done |
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
| Observer _buildFooter() { | |
| return Observer(builder: (_) { | |
| if (_vm.selectedInvoicesIsEmpty) { | |
| return _buildEmptyWidget(); | |
| } | |
| return Container( | |
| color: Colors.white, | |
| child: Padding( | |
| padding: const EdgeInsets.all(24.0), |
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
| SizedBox _buildDataTable() { | |
| return SizedBox( | |
| width: double.infinity, | |
| child: Observer(builder: (_) { | |
| return DataTable( | |
| showBottomBorder: true, | |
| columns: [ | |
| DataColumn(label: Text('Bill Date')), | |
| DataColumn(label: Text('Amount')), | |
| ], |
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:flutter/material.dart'; | |
| import 'package:flutter_datatable_with_mobx/common/ex_button.dart'; | |
| import 'package:flutter_datatable_with_mobx/model/ex_invoice_model.dart'; | |
| import 'package:flutter_datatable_with_mobx/view_model/datatable_view_model.dart'; | |
| import 'package:flutter_mobx/flutter_mobx.dart'; | |
| class DataTableView extends StatefulWidget { | |
| @override | |
| _DataTableViewState createState() => _DataTableViewState(); | |
| } |
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:mobx/mobx.dart'; | |
| import 'invoice_model.dart'; | |
| part 'ex_invoice_model.g.dart'; | |
| class ExInvoiceModel extends _ExInvoiceModel with _$ExInvoiceModel { | |
| ExInvoiceModel(InvoiceModel invoice) : super(invoice); | |
| } | |
| abstract class _ExInvoiceModel extends InvoiceModel with Store { |
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 'dart:convert'; | |
| import 'package:flutter/services.dart'; | |
| import 'package:flutter_datatable_with_mobx/model/ex_invoice_model.dart'; | |
| import 'package:flutter_datatable_with_mobx/model/invoice_model.dart'; | |
| import 'package:mobx/mobx.dart'; | |
| part 'datatable_view_model.g.dart'; | |
| class DataTableViewModel = _DataTableViewModel with _$DataTableViewModel; |