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
| #!/bin/bash | |
| iptables -A INPUT -i docker0 -j ACCEPT | |
| # Assumes host has `jq` installed | |
| docker network inspect bridge | jq -r .[0].IPAM.Config[0].Gateway |
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 * as Rx from 'rxjs' | |
| const pointerDown$ = Rx.Observable.race( | |
| Rx.Observable.fromEvent(window, 'mousedown'), | |
| Rx.Observable.fromEvent(window, 'touchstart'), | |
| ) | |
| const drag$ = pointerDown$.flatMap(() => { | |
| const pointerUp$ = Rx.Observable.race( | |
| Rx.Observable.fromEvent(window, 'mouseup'), |
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
| function sumTransactions(lastStatementDateString) { | |
| const lastStatementDate = new Date(lastStatementDateString); | |
| return [ | |
| 'ctl00_ctl00_pagePlaceholder_sectionContent_ucTrans_gvPTV', | |
| 'ctl00_ctl00_pagePlaceholder_sectionContent_ucPending_gvPending', | |
| ] | |
| .map(id => | |
| Array.from(document.querySelectorAll(`#${id} tr`)) | |
| .map(row => { | |
| const columns = Array.from(row.querySelectorAll('td')).map( |
OlderNewer