gcc notes

编译安装

相关变量

注意: 未验证

conan ---- C++ Package Management Tool

Cheat Sheet

快捷命令

  1. 初始化

Dap Mode Notes

鼠标支持 dap-mouse

注意:

  • dap-mouse 与 lsp-mode 和 lsp-treemacs 关联
  • 使用 lsp-bridge-mode 启用 dap-mouse 无效

启用方法:

1
2
(dap-tooltip-mode +1)
(tooltip-mode +1)

延迟时间:

1
(setq tooltip-delay 0.2)

launch.json

  • configuration 属性
  • 变量

    ${workspaceFolder}
    项目根目录
    {$file}
    当前打开的 editor 显示文件
    {$env:variable_name}

    环境变量

flask-restx notes

namespace

Model

  • 参考:

  • parameters 字段

    Parameters: default – The default value for the field, if no value is specified. attribute – If the public facing value differs from the internal value, use this to retrieve a different attribute from the response than the publicly named value. title (str) – The field title (for documentation purpose) description (str) – The field description (for documentation purpose) required (bool) – Is the field required ? readonly (bool) – Is the field read only ? (for documentation purpose) example – An optional data example (for documentation purpose) mask (callable) – An optional mask function to be applied to output

profile ---- python time consuming Python 运行时间分析工具

工具

profiler

  • cProfile
  • profile

使用

snakeviz

1
2
3
python -m cProfile -o /to/profile_result.prof your_program.py args

snakeviz /to/profile.prof
  • 结果

    • 网站

gprof2dot

1
2
3
python -m cProfile -o profile.pstats   program.py args

gprof2doc -f pstats /to/profile.pstats | dot -Tpng -o result.png
  • 结果

    • 函数调用图片

代码速度

set 快于 list

x in set 快于 x in list