Skip to content

Instantly share code, notes, and snippets.

View CodeDaraW's full-sized avatar
👓
Excited

月迷津渡 CodeDaraW

👓
Excited
View GitHub Profile
@CodeDaraW
CodeDaraW / douban.md
Last active March 3, 2024 20:02
豆瓣 @DaraW

书 📚:17 在读 · 303 想读 · 183 读过
影 🎬:2 在看 · 110 想看 · 181 看过
音 🎵:0 在听 · 0 想听 · 1 听过

// LeetCode Hire Writeup
interface Action<T> {
payload?: T;
type: string;
}
class EffectModule {
count = 1;
message = "hello!";
let queue = [] // 队列
let isUp = true // 是否向上
let isRunning = false // 是否正在运行
let currentFloor = 1 // 当前楼层
let timer = null
const INTERVAL_TIME = 1000
const MAX_FLOOR = 10
const MIN_FLOOR = 1
@CodeDaraW
CodeDaraW / LinearRecursiveCPST.js
Last active March 21, 2017 07:41
Linear Recursive CPS Transformation
/**
* const sum = x => {
* if (x === 0) {
* return 0
* }
*
* return x + sum(x - 1)
* }
*
* sum(10) Works well, we will get 55;