An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.
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
| mongo staging-hapi.geniesolutions.com.au:27017/admin --quiet --eval "DBQuery.shellBatchSize = 2000; db.auth('admin', 'XXXXXX'); db.getCollection('QuestionnaireResponse').find({}, { _id:0, 'source.reference': 1});" | sort | uniq -c |
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
| git config --global alias.diffno 'diff --name-only' |
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
| #!/usr/bin/env python | |
| import boto3 | |
| import sys | |
| import json | |
| import time | |
| import argparse | |
| from termcolor import cprint |
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 linux python 3 instructions see https://gist.github.com/softwaredoug/a871647f53a0810c55ac | |
| # Install python manager | |
| brew install pyenv | |
| # Install virtual environment manager | |
| brew install pyenv-virtualenv | |
| # Update your .zshrc |
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
| ✘ billsb@Brentons-MacBook-Pro ~/Code/moneyd-test DEBUG=* moneyd xrp:start -t --admin-api-port 7769 | |
| 88 | |
| 88 | |
| 88 | |
| 88,dPYba,,adPYba, ,adPPYba, 8b,dPPYba, ,adPPYba, 8b d8 ,adPPYb,88 | |
| 88P' "88" "8a a8" "8a 88P' `"8a a8P_____88 `8b d8' a8" `Y88 | |
| 88 88 88 8b d8 88 88 8PP""""""" `8b d8' 8b 88 | |
| 88 88 88 "8a, ,a8" 88 88 "8b, ,aa `8b,d8' "8a, ,d88 | |
| 88 88 88 `"YbbdP"' 88 88 `"Ybbd8"' Y88' `"8bbdP"Y8 | |
| d8' |
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
| cargo doc -p stm32f1 --open | |
| Documenting cortex-m v0.3.1 | |
| Documenting cortex-m v0.4.3 | |
| error: `[::task::Poll]` cannot be resolved, ignoring it... | |
| | | |
| note: lint level defined here | |
| --> /Users/billsb/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-0.3.1/src/lib.rs:11:9 | |
| | | |
| 11 | #![deny(warnings)] | |
| | ^^^^^^^^ |
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
| cargo doc -p stm32f1 --open | |
| Documenting cortex-m v0.3.1 | |
| Documenting cortex-m v0.4.3 | |
| error: `[::task::Poll]` cannot be resolved, ignoring it... | |
| | | |
| note: lint level defined here | |
| --> /Users/billsb/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-0.3.1/src/lib.rs:11:9 | |
| | | |
| 11 | #![deny(warnings)] | |
| | ^^^^^^^^ |
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
| { | |
| "name": "righto-test", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "keywords": [], | |
| "author": "", |
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 saveSomething(something, callback){ | |
| var saved = righto(saveValue, something); | |
| var updatedLastSavedTime = righto(updateLastSaveTime); | |
| // We want the result of `saved`, but only after `updatedLastSavedTime` succeeds. | |
| var result = righto.after(saved, updatedLastSavedTime); | |
| result(callback); | |
| } |