VS Code keyboard shortcut: workbench.action.navigateBackward - Ctrl, -
VS Code keyboard shortcut: workbench.action.navigateForward - Ctrl, Shift, -
To uncommit your local commit (which has not yet been pushed to Github) and keep your staged changes use:
git reset --soft HEAD~1
This command will undo your last commit, but it will keep your changes and your staging intact.
networksetup -listpreferredwirelessnetworks en0
find your wifi network you want to change
Preferred networks on en0:
Banana
CafeWifi
MyPhoneHotspot
If you've created a docker network by using docker network create NETWORK-NAME
prior to using docker compose up
You may get
$ docker-compose up pm-amqp pm-zookeeper pm-db pm-trdapi
[+] Running 3/0
✔ Container XXX-pm-zookeeper-1 Created 0.0s
✔ Container XXX-pm-amqp-1 Created 0.0s
✔ Container XXX-pm-db-1 Created 0.0s
for (let i = 1; i <= 100; i++) { | |
let numString; | |
switch (i) { | |
case 1: | |
numString = "one"; | |
break; | |
case 2: | |
numString = "two"; | |
break; | |
case 3: |
function binary_search(x, sorted_collection, low = 0, high = null) { | |
// x is target | |
// sorted_collection I will assume is always sorted in ascending numerical order AND starting from 1, due to the test cases | |
// low is the start index | |
// high is the end index | |
// initialise high to the last index of the array if it's not provided | |
if (high === null) { | |
high = sorted_collection.length - 1; // setting high as highest index, which start from 0 not 1 (hence the -1) | |
} else if (high < 0) { | |
throw new RangeError("High index out of range"); |
function binary_search(x, sorted_collection, low = 0, high = null) { | |
// x is target | |
// sorted_collection I will assume is always sorted in ascending numerical order AND starting from 1 | |
// low is the start index | |
// high is the end index | |
if (high === null) { | |
high = sorted_collection.length; // using .length will return 1 index higher as arrays start with a 0 index, not 1 | |
} else if (high < 0) { | |
throw new RangeError("High index out of range"); | |
} |
sequenceDiagram;
Alice ->> Bob: Hello Bob, how are you?;
Bob-->>John: How about you John?;
Bob--x Alice: I am good thanks!;
Bob-x John: I am good thanks!;
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.;
Bob-->Alice: Checking with John...;
Alice->John: Yes... John, how are you?;