Skip to content

Instantly share code, notes, and snippets.

🇨🇳
保家卫国中...

哥哥的激光炮 yujintang

🇨🇳
保家卫国中...
Block or report user

Report or block yujintang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
}
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 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]);
}
}
};
You can’t perform that action at this time.