[置顶] Environment

摘要: 链接: Environment 提取码: dzb3 MinGW-64-bit - Qt Wiki winlib gcc & llvm WinLibs - GCC+MinGW-w64 compiler for Windows MSYS2 https://github.com/msys2/msys2-i 阅读全文

posted @ 2021-10-25 09:19 acd407 阅读(226) 评论(0) 推荐(0)

2025年12月14日

在 Android 上启用 LXC 容器:一次完整的实践记录

摘要: 本文记录了我在 Android 设备上成功部署并运行 LXC(Linux Containers)容器的全过程。目标是提供一种可行、可复现的方法,并分享过程中踩过的坑与解决方案。 前置条件 在开始之前,请确保满足以下条件: 设备已 root(Magisk 或 KernelSU 均可); 内核支持 LX 阅读全文

posted @ 2025-12-14 12:31 acd407 阅读(3) 评论(0) 推荐(0)

2023年10月6日

i3 config

摘要: 1 # This file has been auto-generated by i3-config-wizard(1). 2 # It will not be overwritten, so edit it as you like. 3 # 4 # Should you change your k 阅读全文

posted @ 2023-10-06 11:59 acd407 阅读(37) 评论(0) 推荐(0)

2023年10月5日

prime table

摘要: 1 struct Pt { 2 v:Vec<u64>, 3 } 4 5 impl Pt { 6 fn new(t:u64) -> Pt { 7 Pt { 8 v:vec![2], 9 } 10 .fill(t) 11 } 12 fn fill(mut self,n:u64) -> Self { 13 阅读全文

posted @ 2023-10-05 22:38 acd407 阅读(49) 评论(0) 推荐(0)

2023年9月21日

linux 格式化磁盘随笔

摘要: 1 fdisk /dev/<> 2 >>> d 3 >>> n 4 >>> w 5 6 mkfs.ext4 /dev/<> 7 8 resize2fs /dev/<> 9 10 fsck -t ext4 /dev/<> 11 12 mount /dev/<> /mnt/??? 13 14 umoun 阅读全文

posted @ 2023-09-21 21:52 acd407 阅读(14) 评论(0) 推荐(0)

2023年8月24日

vscode 配置

摘要: ``` { "workbench.colorTheme": "Visual Studio Dark", "editor.fontSize": 16, "workbench.startupEditor": "none", "editor.formatOnType": true, "workbench. 阅读全文

posted @ 2023-08-24 23:11 acd407 阅读(21) 评论(0) 推荐(0)

2023年4月14日

ecode custom config

摘要: colorschemes.conf [mathtimes] background = #272b2f text = #D4D4D4 caret = #FFFFFF accent = #76BCFF selection = #3465a4 line_number = #909090 line_numb 阅读全文

posted @ 2023-04-14 22:34 acd407 阅读(34) 评论(0) 推荐(0)

2023年4月12日

打印出目录下所有文件名(给出 C、Bash两个版本)

摘要: bash function fl () { if [[ -z "$1" ]]; then fl_read_dir $PWD elif [[ "${1: -1}" == '/' ]]; then fl ${1%/} else fl_read_dir $1 fi } function fl_read_d 阅读全文

posted @ 2023-04-12 22:15 acd407 阅读(52) 评论(0) 推荐(0)

2023年1月14日

一个使用Win32api的简单乐谱解析器

摘要: 音调数据 enum scale { Rest = 0 , A0 = 21 , A0s = 22 , B0 = 23 , C1 = 24 , C1s = 25 , D1 = 26 , D1s = 27 , E1 = 28 , F1 = 29 , F1s = 30 , G1 = 31 , G1s = 3 阅读全文

posted @ 2023-01-14 11:49 acd407 阅读(49) 评论(0) 推荐(0)

2022年8月25日

Mandelbrot Set Visualization

摘要: Bit Draw Solution 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <math.h> 5 #include <complex.h> 6 #include <stdbool.h> 7 阅读全文

posted @ 2022-08-25 23:33 acd407 阅读(28) 评论(0) 推荐(0)

Color Map

摘要: Source 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <math.h> 5 6 #define XLEN 1024 7 #define YLEN 1024 8 9 int main() 1 阅读全文

posted @ 2022-08-25 10:35 acd407 阅读(19) 评论(0) 推荐(0)

2022年8月21日

Logistic Map

摘要: Source Link 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <math.h> 4 5 #define X 2560 //尽量为8的倍数,若不是X/8需向上取整 6 #define Y 1600 //推荐X、Y比例为(4.0-2. 阅读全文

posted @ 2022-08-21 12:56 acd407 阅读(99) 评论(0) 推荐(0)

2022年8月17日

function plotter

摘要: 1 #include <stdio.h> 2 #include <math.h> 3 #include <stdlib.h> 4 #include <stdbool.h> 5 #define max(x, y) ((x)>(y)?(x):(y)) 6 7 #define XDIM 1024 //此项 阅读全文

posted @ 2022-08-17 17:57 acd407 阅读(474) 评论(0) 推荐(0)

2022年6月22日

isrepeat

摘要: 1 #include <stdbool.h> 2 bool isrepeat(char *source) 3 { 4 long long bits[4] = {0}; 5 int i = 0; 6 while(source[i]){ 7 if(bits[source[i]/64]&(1<<(sour 阅读全文

posted @ 2022-06-22 10:11 acd407 阅读(32) 评论(0) 推荐(0)

2022年3月19日

[Win32] HBRUSH 画刷

摘要: 第一种: hbr= CreateSolidBrush(RGB(255,0,0)); //单色的画刷 RGB(r,g,b) #define RGB(r,g,b) ((COLORREF)(((BYTE)(r)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(b))<<16 阅读全文

posted @ 2022-03-19 12:51 acd407 阅读(262) 评论(0) 推荐(0)

2022年1月22日

Proteus引脚状态类型

摘要: 状态类型 关键字 说明 电源高态 PHI 电源高逻辑 强电高态 SHI 主动输出高逻辑 弱电高态 WHI 被动输出高逻辑 悬空态 FLT 悬空输出-高阻 未定义态 WUD 与模拟电压混联 竞争态 CON 与数字电压冲突 弱电低态 WLO 被动输出低逻辑 强电低态 SLO 主动输出低逻辑 电源低态 P 阅读全文

posted @ 2022-01-22 10:27 acd407 阅读(454) 评论(0) 推荐(0)

导航