Skip to content

Instantly share code, notes, and snippets.

View nmnmcc's full-sized avatar
😄

Yinhao Huang nmnmcc

😄
  • Zhuhai College of Science and Technology
View GitHub Profile
@nmnmcc
nmnmcc / wbi.dart
Last active April 14, 2024 02:39
library wbi;
import 'dart:convert';
import 'package:dartx/dartx.dart';
import 'package:path/path.dart' as path;
import 'package:http/http.dart' as http;
import 'package:uri/uri.dart';
void main(List<String> args) async {
final originalUri =
@nmnmcc
nmnmcc / Math.cs
Last active February 24, 2024 09:56
enum Quadrant
{
None,
I,
II,
III,
IV
}
class Point(double x, double y)
@nmnmcc
nmnmcc / typst_guide.md
Last active June 29, 2026 18:38
Typst 入门与精通

Typst 入门与精通

Typst 是一款新兴的基于标记的排版系统,它致力于在拥有与 LaTeX 同等强大功能的同时,提供更为简洁易学的用户体验 。本指南将系统地介绍 Typst 的各项功能,从基础入门到高级应用,帮助用户全面掌握这款现代排版工具。

Typst 概览 (Typst Overview)

在深入学习 Typst 的具体语法和功能之前,有必要了解其核心设计哲学和主要优势。这些理念贯穿于 Typst 的方方面面,是理解其特性和行为的关键。

Typst 的设计哲学 (Typst's Design Philosophy)

在 Windows 中禁用 AAC 编码

从Windows版本21370开始,Windows开始支持蓝牙AAC编码(Advanced Audio Coding),而我突然发现我的小米Air2 SE耳机的音质出现了明显地下降,有质的差别。原本在我的意识里,AAC编码比SBC编码(Low-complexity Subband Codec)更高级,应该会有提高音质的效果才对,怎么会出现音质明显下降的情况呢?我搜寻了一番,无法得出结论。但是事实如此,在我禁用AAC编码重新使用SBC编码以后,音质确实又回到了原本的水平。

可以通过修改注册表的方法来禁用AAC编码:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BthA2dp\Parameters]
@nmnmcc
nmnmcc / Test2.md
Last active June 10, 2025 09:15
Personal Blog

Test2

@nmnmcc
nmnmcc / fonts.conf
Created July 13, 2025 06:15
Fontconfig
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match>
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</string>
</edit>
@nmnmcc
nmnmcc / cet.txt
Created July 14, 2025 12:03
CET Words
ace
ache
achieve
achievement
acid
acidity
acknowledge
acknowledgement
acquaint
acquaintance
@nmnmcc
nmnmcc / neovim.md
Created July 16, 2025 06:14
NeoVim Cheat Sheet

NeoVim Cheat Sheet

I. Basic Concepts

1. Modes

NeoVim is a modal editor, primarily featuring the following modes:

  • Normal Mode: The default mode for navigating, deleting, copying, and pasting text. Press Esc to return to this mode from others.
  • Insert Mode: Used for typing text. Enter it with keys like i, a, o.
@nmnmcc
nmnmcc / Containerfile
Created September 12, 2025 09:31
ROS 2 humble
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y locales curl
RUN bash -c "bash <(curl -sSL https://linuxmirrors.cn/main.sh) --source mirrors.bfsu.edu.cn"
RUN locale-gen en_US.UTF-8 && update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
<?xml version="1.0" encoding="UTF-8"?>
<robot name="robot" xmlns:xacro="http://www.ros.org/wiki/xacro">
<link name="base_footprint"></link>
<link name="body">
<visual>
<geometry>
<box size="1 0.8 0.2" />
</geometry>