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
| 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
| 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
| 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
| 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 ( | |
| "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" | |
| "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
| func (p *PackageHandler) TrackByVehicleID(c echo.Context) error { | |
| wsConn, err := p.upgrader.Upgrade(c.Response(), c.Request(), nil) | |
| if err != nil { | |
| return err | |
| } | |
| ctx, cancelFunc := context.WithCancel(context.Background()) | |
| go func() { | |
| _, _, err = wsConn.ReadMessage() |
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 client | |
| import ( | |
| "context" | |
| "errors" | |
| "fmt" | |
| "github.com/Abdulsametileri/package-tracking-app/domain" | |
| amqp "github.com/rabbitmq/amqp091-go" | |
| ) |
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
| func (p *packageUsecase) TrackByVehicleID(ctx context.Context, id string) (*domain.Package, error) { | |
| bytes, err := p.pc.ConsumeByVehicleID(ctx, id) | |
| if err != nil { | |
| return nil, err | |
| } | |
| var res domain.Package | |
| err = json.Unmarshal(bytes, &res) | |
| return &res, err | |
| } |