常用知识点记录

wget下载整站命令

wget -r -p -np -k https://www.baidu.com

vue代理设置

vscode常用快捷键

#修改编程语言
command + k, m

# 列选择
alt + 鼠标点选
command + alt + 下箭头/上箭头

#在当前行上方插入一行
command + shift + enter 
#在当前行下边插入一行
command + enter

#格式化代码
shift + alt + f

#删除当前行
command + shift + k

#向上移动一行
alt + 上箭头

#向上复制一行
alt + shift + 上箭头

function factorial($n, $accumulator = 1) {
    if ($n == 0) {
        return $accumulator;
    }
 
    return function() use($n, $accumulator) {
        return factorial($n - 1, $accumulator * $n);
    };
}
 
function trampoline($callback, $params) {
    $result = call_user_func_array($callback, $params);
 
    while (is_callable($result)) {
        $result = $result();
    }
 
    return $result;
}
 
var_dump(trampoline('factorial', array(100)));
posted @ 2020-04-03 16:58  just_c  阅读(76)  评论(0)    收藏  举报