Home

Python asyncio

Python asyncio Reference asyncio — Asynchronous I/O Async IO in Python: A Complete Walkthrough Python Asyncio: The Complete Guide

Read more

计算两个坐标的距离

计算两个坐标的距离 1. 地球是圆的, 取弧线的长度 # dart import 'dart:math' show cos, sqrt, asin; double calculateDistance(lat1, lon1, lat2, lon2){ var p = 0.017453292519943295; var c = cos; var a = 0.5 - c((lat2 - lat1) * p)/2 + c(lat1 * p) * c(lat2 * p) * (1 - c((lon2 - lon1) * p))/2; return 12742 * asin(sqrt(a)); } 2. 使用geolocato...

Read more

Yabai Tiling Window Manager

Yabai Tiling Window Manager 1. Disabling System Integrity Protection 1. 闭机 2. 常按开机键 3. Continue until you see Utilities in the menu bar 4. Select Terminal # # APPLE SILICON # # If you're on Apple Silicon macOS 12.x.x # Requires Filesystem Protections, Debugging Restrictions and NVRAM Protection to be disabled # (printed warning can be safely...

Read more

leetcode-cli

leetcode-cli 登录国际服 [ERROR] invalid password? Login into leetcode on chrome install cookie.chrome pluging with command => leetcode plugin -i cookie.chrome install libsecret tools => linux (sudo apt-get install libsecret-tools) mac ( brew install libsecret ) now try to log in Ref link: https://github.com/skygra...

Read more

Firefox

Firefox Reference Can I hide native tabs at the top of Firefox? Remove Tabs on Top

Read more

Python Excel

Python Excel Reference Python 自动化操作 Excel 看这一篇就够了 What is the best library in python to deal with excel files? [closed]

Read more

MacOS 输入法自动选择

MacOS 输入法自动选择 Reference 如何让vim退出「插入模式」的时候自动切换为英文输入法? macOS下vim 中文输入法切换问题和两种解决方案 Vim 输入中文时输入法的自动切换

Read more

Trojan

Trojan 域名 freenom mingfeili.ml.intlzwj8fn 手动延期 域名有效期最多为1年, 要到期时需要手动延期 1. 登陆freenom网站 2. Services -> My Domains 可以查看当前域名有效期 3. Services -> Renew Domains 可以延期当前域名 mingfeili.ml 2022-11-26 2024-02-26 DNS cloudflare mingfeili.ml.intlzwj8cf! SSL/TLS 证书 查看证书信息 openssl x509 -in fullchain.pem -...

Read more