- demo: different ways to get resolve (return) value from a
promise
- type: full code example
- language: javascript
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
<html> | |
<title>(BNB/BTC) Binance - Web Socket Stream</title> | |
<script language="javascript" type="text/javascript"> | |
var wsUri = "wss://stream.binance.com:9443/ws/bnbbtc@depth5"; | |
var outputDiv; | |
var output; | |
function init() { | |
outputDiv = document.getElementById("output"); |
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
var fs = require('fs'); | |
var folder = 'vs_code'; | |
var file = 'keyboard_shortcuts'; | |
var path = `${folder}/${file}.json` | |
var jsonFile = fs.readFileSync(path); | |
rs = JSON.parse(jsonFile); | |
console.log(rs); |
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
[ | |
{ "key": "escape escape", "command": "workbench.action.exitZenMode", | |
"when": "inZenMode" }, | |
{ "key": "shift+escape", "command": "closeReferenceSearch", | |
"when": "inReferenceSearchEditor && !config.editor.stablePeek" }, | |
{ "key": "escape", "command": "closeReferenceSearch", | |
"when": "inReferenceSearchEditor && !config.editor.stablePeek" }, | |
{ "key": "escape", "command": "editor.closeTestPeek", | |
"when": "testing.isInPeek && !config.editor.stablePeek || testing.isPeekVisible && !config.editor.stablePeek" }, | |
{ "key": "shift+escape", "command": "cancelSelection", |
NewerOlder