HTML/CSS Render engine
HTML/CSS Render engine
查看元素边界
<!-- 控制台运行 -->
[].forEach.call($$("*"),function(a){
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)
})
查看鼠标点击坐标
element.addEventListener("mousedown", function (e) {
<!-- let bounds = document.getElementById("graph").getBoundingClientRect(); -->
let bounds = pare...
回车与换行
回车与换行
\r = CR (Carriage Return) → Used as a new line character in Mac OS before X
\n = LF (Line Feed) → Used as a new line character in Unix/Mac OS X
\r\n = CR + LF → Used as a new line character in Windows
在vim中, \n是匹配行结束, \r是匹配回车符. 插入中, \n是插入null字符(^@), \r是插入
回车CR. 所以要把字符替换成换行, 需要%s/a/\r/g
打开特殊字段匹配(可以匹配^@之类), :set magic
...
Web Test
Web Test
不同视角:
用户视角
开发人员视角
运维人员视角
测试指标:
响应时间
并发数
吞吐量
性能测试:
性能测试
负载测试
压力测试
稳定性测试
安全渗透
Tools
Artillery
Bees with Machine Guns
Fiddler
Flood Element
Fortio
Gatling
JMeter
K6
Locust
Siege
Taurus
The Grinder
Tsung
nGrinder
puppeteer-webperf
vegeta
Locust
locustio/locust
Locust Docume...
python introduce
python introduce
解释器
CPython
python泛指Cpython, 使用C实现, 可以很方便的集成C代码. Cpython中有 Global Interpreter Lock(GIL),
同一时间只允许一个线程获取解释器的控制权. 一般使用多进程实现并发需求.
PyPy
JIT Python实现, 比CPython快很多
[Jython]
在JVM运行Python, 可以很容易与Java集成
[IronPython]
.net实现
[PythonNet]
.net...
后端Web应用开发框架
后端Web应用开发框架
Spring
ktor
Django
express
Reference
Why I would choose Ktor over any other Flask, hapi.js or Sinatra?
Django Vs Express: The Key Differences To Observe in 2022
Django REST framework vs Ktor
Spring Boot VS Django: What’s the difference in 2021?
python project structure
python project structure
python3 -m venv <path> # 创建虚拟环境
source <path>/bin/activate # 激活虚拟环境
deactivate # 退出虚拟环境
Reference
venv — Creation of virtual environments
Python Packaging User Guide
Installing Python Modules
Distributing Python Modules
463 post articles, 58 pages.