Skip to content

Instantly share code, notes, and snippets.

🇨🇳
保家卫国中...

哥哥的激光炮 yujintang

🇨🇳
保家卫国中...
View GitHub Profile
View promisifyAll
const promisify = require('util').promisify;
module.exports = function promisifyAll(obj) {
for(const key in obj){
if(obj.hasOwnProperty(key)){
obj[key + 'Async'] = promisify(obj[key]);
}
}
};
View gist:0fd5baa3f76fa51de5320dd32908219c
#!/bin/bash
base=(a b c)
symbols=($(echo "$base"))
function checkarg {
if [ $# -gt 0 ]; then
symbols=($(echo "$@"))
else
symbols=($(echo "$base"))
View vscode config
{
"workbench.colorTheme": "Dracula",
"files.autoSave": "onFocusChange",
"terminal.explorerKind": "external",
"workbench.panel.defaultLocation": "right",
"workbench.statusBar.feedback.visible": false,
"window.zoomLevel": 0,
"editor.tabSize": 2
}
You can’t perform that action at this time.