让程序员开心的 StackOverflow 问题,抄了又抄。
Memes
退出 Vim 编辑器 - How do I exit the Vim editor?
LaTeX
虽然 TeX Exchange 不是 StackOverflow 的一部分,但还是把相关内容贴在了这里🤪。
- 伪代码宏包介绍 - algorithm, algorithmic, algorithmicx, algorithm2e, algpseudocode = confused
- 伪代码浮动体分页 - Algorithm tag and page break
- TikZ 绘制带权图 - Showing weights on Tikz graph using "draw edge" commands
- TikZ 结点文本按基线对齐 - How to align text in TikZ nodes by baseline?
- 在
enumerate中使用其他计数器 - How do I change theenumeratelist format to use letters instead of the default Arabic numerals?
Linux & Unix
- zsh 的配置文件 - What should/shouldn't go in .zshenv, .zshrc, .zlogin, .zprofile, .zlogout?
Python
科学计算
不要逐行遍历pandas.DataFrame- How to iterate over rows in a DataFrame in Pandaspandas.Series和布尔值 - Truth value of aSeriesis ambiguous. Usea.empty,a.bool(),a.item(),a.any()ora.all()numpy下标数组转换为掩码数组 - How can you turn an index array into a mask array in Numpy?pandas.DataFrame分块遍历 - How to iterate over consecutive chunks of Pandas dataframe efficiently- 字符串搜索算法 - Python/NumPy first occurrence of subarray
渐进类型
- 递归数据结构的类型标注 - How do I type hint a method with the type of the enclosing class?
IPython
- 不改变单元格语言的情况下禁用某一单元格的执行 - IPython Notebook: Elegant way of turning off part of cells?
Rust
- 字符串相关类型的转换 - How do I convert between
String,&str,Vec<u8>and&[u8]?
Java
- Java 泛型
- 泛型约束:协变(covariance)
extends K和逆变(contravariance)super K- 泛型中的
super关键字 - Java generics super keyword ? super T语法 - Generics..? Super Tsuper和extends约束的区别是什么 - What is the difference between 'super' and 'extends' in Java Generics
- 泛型中的
- 泛型约束:协变(covariance)
- ArrayList 翻转 - What is the Simplest Way to Reverse an ArrayList?
JavaScript / TypeScript
- 异步
- to
.thenor not to.then- How do I tell if an object is a Promise?
- to
C / C++
- C 头文件守卫预处理指令 - Why are
#ifndefand#defineused in C++ header files?