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 ($) { | |
| 'use strict'; | |
| function recordTimeToFirstPaint() { | |
| // Use Chrome's loadTimes or IE 9+'s msFirstPaint to record the time to render in milliseconds: | |
| var firstPaintTime, timingSource; | |
| if ('chrome' in window && $.isFunction(window.chrome.loadTimes)) { | |
| var loadTimes = window.chrome.loadTimes(); |
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
| # best practice: linux | |
| nano ~/.pgpass | |
| *:5432:*:username:password | |
| chmod 0600 ~/.pgpass | |
| # best practice: windows | |
| edit %APPDATA%\postgresql\pgpass.conf | |
| *:5432:*:username:password | |
| # linux |
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/sh | |
| EMULATOR="cloud-firestore-emulator" | |
| EMULATOR_TARGET=$(find ~/.cache/firebase/emulators/ -type f -name "$EMULATOR*.jar" | sort -r | head -n1) | |
| if [ -z "$EMULATOR_TARGET" ]; then | |
| echo "Could not find the firestore emulator. Ending test run." | |
| exit 1 | |
| fi |
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 on the top of your project | |
| import "github.com/ethereum/go-ethereum/crypto" | |
| type ethHandlerResult struct { | |
| Result string `json:"result"` | |
| Error struct { | |
| Code int64 `json:"code"` | |
| Message string `json:"message"` | |
| } `json:"error"` | |
| } |
OlderNewer