Skip to content

Instantly share code, notes, and snippets.

@tiantian1645
tiantian1645 / miaoming.ini
Last active September 13, 2023 01:37
rule ini
;https://github.com/s1oz/unraid/blob/master/s1oz.ini
[custom]
;s1oz自用版
;设置规则标志位
ruleset=🎯 全球直连,https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Surge/Lan/Lan.list
ruleset=🎯 全球直连,https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Surge/Direct/Direct.list
ruleset=🎯 全球直连,https://raw.githubusercontent.com/s1oz/unraid/master/customize.list
@tiantian1645
tiantian1645 / embedded-studio.md
Created February 1, 2023 01:58
embedded-studio 导入 STM32CubeIDE FreeRTOS 项目

使能 configUSE_NEWLIB_REENTRANT 的情况下

  1. Code->Linker->Additional Input Files 需要增加对应的 libc_nano.a 文件 比如 STM32F103 需要 D:\ST\STM32CubeIDE\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\arm-none-eabi\lib\thumb\v7-m\nofp\libc_nano.a 具体在STM32CubeIDE 生成的 map文件中可以看到
  2. Code->Preprocessor->User Include Directories 中增加 头文件路径 ```D:\ST\STM32CubeIDE\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\arm-none-eabi\include D:\ST\STM32CubeIDE\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\arm-none-eabi\include\newlib-nano D:\ST\STM32CubeIDE\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\lib\gcc\arm-none-eabi\10.3.1\include D:\ST\STM32CubeIDE\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-
@tiantian1645
tiantian1645 / bilibili_real.js
Created January 4, 2023 07:03
我算出了三体动画的真实评分
// https://wdhhh.cn/home?article=627
// https://www.bilibili.com/video/BV1WG4y117mz/
const scoreList = {
short: [],
long: [],
}
let totalCount = {
short: 0,
@tiantian1645
tiantian1645 / G6PD_Hb 操作说明.md
Last active March 17, 2021 02:12
G6PD_Hb 操作说明

注意事项

  • 电池电压低于3V时,不影响测试但U盘功能不可用,此时电池图标会有提示
  • U盘格式只支持FAT 和 exFAT
  • U盘存在多分区时,导出时会有一定概率失败

数据导出

  • 进入菜单 1-3 后插入U盘可以导出测试结果、QC结果和内存中保存的最近60条原始采样数据记录
  • 测试完成后按Next键可以导出本次测试原始采样数据
  • 测试完成时若U盘已插入,则会自动导出本次测试原始采样数据
@tiantian1645
tiantian1645 / ssh_socks5.md
Last active March 29, 2021 11:12
windows ssh over socks5
Host github.com
    HostName github.com
    IdentityFile ~/.ssh/id_ecdsa_github
    ProxyCommand ncat --proxy-type socks5 --proxy 127.0.0.1:1090  %h %p
@tiantian1645
tiantian1645 / testframeless.py
Created December 10, 2019 05:33 — forked from mgrady3/testframeless.py
Test Qt/PyQt Frameless Window resizing with QSizeGrip
"""
Test Qt Frameless Window resizing with QSizeGrip
Maxwell Grady, September 2017.
"""
import sys
from PyQt5 import QtCore, QtWidgets
from qtmodern.styles import dark
from qtmodern.windows import ModernWindow