[置顶] 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 阅读(218) 评论(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 阅读(17) 评论(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 阅读(8) 评论(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 阅读(7) 评论(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 阅读(18) 评论(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 阅读(15) 评论(0) 推荐(0) 编辑

2023年4月12日

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

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

posted @ 2023-04-12 22:15 acd407 阅读(33) 评论(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 阅读(35) 评论(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 阅读(17) 评论(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 阅读(10) 评论(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 阅读(86) 评论(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 阅读(377) 评论(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 阅读(27) 评论(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 阅读(229) 评论(0) 推荐(0) 编辑

2022年1月22日

Proteus引脚状态类型

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

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

2022年1月21日

gcc或clang的部分builtin函数

摘要: 1 __builtin_ctz(x); // 求x的二进制数末尾0的个数 2 __builtin_ctz(0b0100) //2 3 4 __builtin_clz(x); // 求x的二进制数前导0的个数(ps:一共有32位) 5 __builtin_clz(0b0100) //29 6 7 __ 阅读全文

posted @ 2022-01-21 21:17 acd407 阅读(234) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示