Skip to content

Instantly share code, notes, and snippets.

View oxUnd's full-sized avatar
💭
多写代码少说话;

秋_ oxUnd

💭
多写代码少说话;
  • Harbin Institute of Technology
  • China
View GitHub Profile
@oxUnd
oxUnd / 3dr.c
Created October 23, 2026 05:55
/*
* 3dr.c —— 迷你 3D 渲染器:在终端里画一颗会转、会跳的心
*
* 编译:cc -O2 -o heart 3dr.c -lm
* 运行:./heart 自转 + 心跳,按 Ctrl-C 退出
* ./heart -s 只画一帧(适合重定向到文件)
* ./heart -n 关闭真彩色,只输出普通字符
* ./heart -o 图片.ppm 只画一帧并存成 PPM 图片
*
* 依赖:C 标准库 + libm,没有第三方库。
@oxUnd
oxUnd / gist:aafa55f13c816ea3c233a6bc05be3aa4
Created September 16, 2026 08:14
MVI development plugin skill
mvi development plugin skill.
<?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>
@oxUnd
oxUnd / vmware
Created October 9, 2025 05:37
under vmware sound fixed.
❯ 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 = {
@oxUnd
oxUnd / vimrc
Last active December 16, 2025 02:10
" 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
@oxUnd
oxUnd / sin(x)-x1.c
Last active September 26, 2022 15:20
Draw sin.x
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
typedef struct {
int x, y;
} P;
typedef struct {
int w, h;
@oxUnd
oxUnd / shader.h
Last active September 28, 2021 09:28
shader.h (base on glad)
/**
* @author fansekey
*/
#ifndef __GL_SHADER_H__
#define __GL_SHADER_H__
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstring>
@oxUnd
oxUnd / windows-terminal-color-schemes.json
Created April 5, 2020 04:12
windows terminal color schemes
// Add custom color schemes to this array
// http://ciembor.github.io/4bit/#
{
"schemes": [
{
"name": "Dracula",
"background": "#282A36",
"black": "#21222C",
"blue": "#BD93F9",
@oxUnd
oxUnd / gist:67a267273e2cd8e9b27f8ae34441b131
Created April 26, 2019 11:07
bcwc_pcie 遇到这个错误可以忽略
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”
@oxUnd
oxUnd / .spacemacs
Created April 17, 2019 09:14
my spacemacs settings
;; -*- 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