Skip to content

Instantly share code, notes, and snippets.

View jyydev's full-sized avatar
:octocat:
✌(≧◠ᴥ◠J)✌ + ✌(Y◠ᴥ◠≦)✌ = :octocat: :octocat:

JY jyydev

:octocat:
✌(≧◠ᴥ◠J)✌ + ✌(Y◠ᴥ◠≦)✌ = :octocat: :octocat:
View GitHub Profile
<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");
@jyydev
jyydev / fs read local json file.js
Last active June 28, 2021 14:10
fs read local json file
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);
@jyydev
jyydev / vscode-default-keyboard-shortcuts.json
Last active July 6, 2021 04:16
VSCode > keyboard shortcuts, shortcut keys > default > json
[
{ "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",
@jyydev
jyydev / README.md
Last active June 29, 2021 03:30
promise, async await, .then