最新手册
如何使用 Emacs Org 模式和 Reveal.js 创建幻灯片
在过去一年左右的时间里,我开始大量使用 Emacs 和 Org 模式 包(用于做笔记、组织自己,等等)。同时我也开始尝试做一些简短的演讲。我一直想知道如何…
手把手教你写个小程序定时器管理库
凹凸曼是个小程序开发者,他要在小程序实现秒杀倒计时。于是他不假思索,写了以下代码: Page({ init: function () { clearInterval(this.timer) this…
创建 CompletableFuture 对象
public static CompletableFuture runAsync(Runnable runnable) public static CompletableFuture runAsync(Runnable runnable, Executor executor) p…
useMemo 和 useCallback 的优化
function Child({ onButtonClick, data }) { console.log('Child Render') return ( {data.number} ) } Child = memo(Child) function App() { const …
让 Emacs 俄罗斯方块变得更难的一些 Advice
你知道吗, Emacs 与 俄罗斯方块 的实现捆绑在一起了? 只需要输入 M-x tetris 就行了。 在文本编辑器讨论中,Emacs 倡导者经常提到这一点。没错,但是…
JavaScript 数组扁平化
let arr = [ [1], [1, 2, 3], [1, [2, 3]] ] JS 自带 flat 方法 arr.flat(Infinity) toString 方法可以 arr.toString().split(',').map(item => Numbe…
Intellij IDEA 配置
插件 Configure → Plugins → IdeaVim Lombok Codota JRebel for IntelliJ Python CVS Vue.js 设置 Configure → Settings Appearance & Behavior …
JS async 函数
async 函数返回一个 Promise 对象 function timeout(ms) { return new Promise((resolve) => { setTimeout(resolve, ms) }) } async function asyncPr…