Skip to content

Instantly share code, notes, and snippets.

View roastduck's full-sized avatar

Shizhi Tang roastduck

View GitHub Profile
@suoto
suoto / create_hdlcc_project.py
Last active February 12, 2019 09:52
Search paths for RTL files and write vim-hdl project file
#!/usr/bin/env python3
import sys
import os
import os.path as p
import argparse
import re
import time
try:
@zhanghuimeng
zhanghuimeng / interactive_window.cpp
Created May 26, 2017 06:26
opencv鼠标笔刷标记区域
// 1. 一些基本定义
typedef cv::Vec3b Color;
typedef cv::Mat_<Color> Image;
Image img; // 要处理的那张图
struct MouseArgs // 用于和回调函数交互,至于为什么要特意攒一个struct后面会讲~
{
Image &img; // 显示在窗口中的那张图
std::vector<std::vector<int>> &mask; // 用户绘制的选区(删除/保留)
@anamewing
anamewing / cleveref-chinese.tex
Last active October 3, 2024 07:16
Add Simplified Chinese translation to cleveref.
\crefname{equation}{式}{式}
\crefname{figure}{图}{图}
\crefname{table}{表}{表}
\crefname{page}{页}{页}
\crefname{chapter}{章}{章}
\crefname{section}{节}{节}
\crefname{appendix}{附录}{附录}
\crefname{theorem}{定理}{定理}
\crefname{lemma}{引理}{引理}
\crefname{corollary}{推论}{推论}