Skip to content

Instantly share code, notes, and snippets.

@KuRRe8
KuRRe8 / 00_intro.md
Last active June 4, 2025 21:57
common uv project files

UV

UV now is the popular python project manager.

Here I upload some common pyproject.toml files for quick reference/ copy/ init proj.

You need rename them back to pyproject.toml and use uv sync.

@KuRRe8
KuRRe8 / 00_intro.md
Last active May 26, 2025 00:36
windows related knowledge

My Windows Notes

1 WINAPI

1.1 KnownFolderID

Windows中包含很多约定的路径,比如%APPDATA% %USERPROFILE%,或者一些库路径,文档,图片,视频。在Windows编程实践中, 应该使用knownfolderid 来固定查找位置。

@KuRRe8
KuRRe8 / Flip7CardCounter.md
Last active June 4, 2025 23:12
Flip 7 card counter on BoardGameArena

Flip 7

A simple game that highly relies on luck.

Card counter

This is a script for TamperMonkey on Chrome/Edge.

Try to read TamperMonkey docs to know how to run it.

@KuRRe8
KuRRe8 / 0_ros2.md
Last active May 10, 2025 22:47
ros2 通识

ROS2 教程

ROS是大家喜闻乐见的机器人操作系统,本Gist介绍一些基本用法

@KuRRe8
KuRRe8 / _intro.md
Last active May 9, 2025 02:06
和Python使用有关的一些教程,按类别分为不同文件

Python教程

Python是一个新手友好的语言,并且现在机器学习社区深度依赖于Python,C++, Cuda C, R等语言,使得Python的热度稳居第一。本Gist提供Python相关的一些教程,可以直接在Jupyter Notebook中运行。

  1. 语言级教程,一般不涉及初级主题;
  2. 标准库教程,最常见的标准库基本用法;
  3. 第三方库教程,主要是常见的库如numpy,pytorch诸如此类,只涉及基本用法,不考虑新特性

其他内容就不往这个Gist里放了,注意Gist依旧由git进行版本控制,所以可以git clone 到本地,或者直接Google Colab\ Kaggle打开相应的ipynb文件

@KuRRe8
KuRRe8 / 00_Intro.md
Last active May 16, 2025 15:15
现代C++的一些新特性,以17、20、23版本为例

现代C++

C++ 11/14作为一个奠基版本,构造了近年来编写C++的新范式。

本人熟悉的主要语言技术栈有C/C++, Python, Matlab, C#, 相比之下,C++的变化是最频繁的,也是最有趣的

多数人已然熟悉C++11/14的用法,本Gist仓库旨在总结一些17及以后版本的特性。

欢迎在讨论区发表相应见解。

@KuRRe8
KuRRe8 / _autoplayconnect4.md
Last active May 3, 2025 23:12
autoplay connect4 in gameboardarena

Autoplay Connect 4

connect 4 is a well-known game which receives a lot of attention in the AI community. The game is played on a 7x6 board, where two players take turns dropping colored discs into columns. The objective is to connect four discs in a row, either horizontally, vertically, or diagonally.

How to compile and use

in wsl g++ -std=c++17 -O3 main.cc then in windows `

@KuRRe8
KuRRe8 / _cxx_snippets.md
Last active May 8, 2025 23:39
useful cpp snippets

C++ Snippets

For personal use

@KuRRe8
KuRRe8 / PythonSnippets.md
Last active June 4, 2025 21:59
small repo for personal use, welcome to contribute

Python Snippets

Useful code for daily development.

@KuRRe8
KuRRe8 / GIST.MD
Created April 28, 2025 21:55
I love GitHub Gist

⚡ I LOVE GIST ⚡

🎯 One file. One idea. One universe.

🚀 Why Gist is the Best Thing Ever

  • Zero setup, zero commitment.
    ✅ Code now, organize... maybe never.

  • Public? Private?