This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 3dr.c —— 迷你 3D 渲染器:在终端里画一颗会转、会跳的心 | |
| * | |
| * 编译:cc -O2 -o heart 3dr.c -lm | |
| * 运行:./heart 自转 + 心跳,按 Ctrl-C 退出 | |
| * ./heart -s 只画一帧(适合重定向到文件) | |
| * ./heart -n 关闭真彩色,只输出普通字符 | |
| * ./heart -o 图片.ppm 只画一帧并存成 PPM 图片 | |
| * | |
| * 依赖:C 标准库 + libm,没有第三方库。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mvi development plugin skill. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>CFBundleDevelopmentRegion</key> | |
| <string>en</string> | |
| <key>CFBundleExecutable</key> | |
| <string>clear</string> | |
| <key>CFBundleIdentifier</key> | |
| <string>com.clear.todolist</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ❯ cat .config/wireplumber/wireplumber.conf.d/50-alsa-config.conf | |
| monitor.alsa.rules = [ | |
| { | |
| matches = [ | |
| # This matches the value of the 'node.name' property of the node. | |
| { | |
| node.name = "~alsa_output.*" | |
| } | |
| ] | |
| actions = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Disable compatibility with vi | |
| set nocompatible | |
| set signcolumn=yes " aways show signcolumn | |
| " Enable file type detection | |
| filetype on | |
| filetype plugin on | |
| filetype indent on | |
| " Turn on syntax highlighting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| typedef struct { | |
| int x, y; | |
| } P; | |
| typedef struct { | |
| int w, h; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author fansekey | |
| */ | |
| #ifndef __GL_SHADER_H__ | |
| #define __GL_SHADER_H__ | |
| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| #include <cstring> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Add custom color schemes to this array | |
| // http://ciembor.github.io/4bit/# | |
| { | |
| "schemes": [ | |
| { | |
| "name": "Dracula", | |
| "background": "#282A36", | |
| "black": "#21222C", | |
| "blue": "#BD93F9", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| make -C /lib/modules/5.0.0-13-generic/build M=/home/<name>/dev/github/bcwc_pcie modules_install | |
| make[1]: 进入目录“/usr/src/linux-headers-5.0.0-13-generic” | |
| INSTALL /home/<name>/dev/github/bcwc_pcie/facetimehd.ko | |
| At main.c:160: | |
| - SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72 | |
| - SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79 | |
| sign-file: certs/signing_key.pem: No such file or directory | |
| DEPMOD 5.0.0-13-generic | |
| Warning: modules_install: missing 'System.map' file. Skipping depmod. | |
| make[1]: 离开目录“/usr/src/linux-headers-5.0.0-13-generic” |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
NewerOlder