开庭

2025-11-30

从几个单词聊香港大火

2025-11-29

获取当前分支的最近 tag 是用这条命令还是这条,就不能搞一条简单的指令么

You’d think there’d be a dead-simple Git command to return the latest tag pointing to the current branch. But the answer, as with many things in Git, is a bit more nuanced. If you’re here for a quick fix, here’s the magic one-liner:

git describe –tags $(git rev-list –tags –max-count=1)

git describe –abbrev=0

https://medium.com/code-kings/git-how-to-get-the-latest-git-tag-from-your-current-branch-without-the-guesswork-31a4fd57a029

继续阅读“开庭”

黄金大涨

2025-10-31

What is GeoGebra?

GeoGebra is a dynamic mathematics software for all levels of education that brings together geometry, algebra, spreadsheets, graphing, statistics and calculus in one engine. In addition, GeoGebra offers an online platform with over 1 million free classroom resources created by our multilingual community. These resources can be easily shared through our collaboration platform GeoGebra Classroom where student progress can be monitored in real time.

https://www.geogebra.org/geometry

2025-10-28

红楼梦中的性学摘录,关键语句自寻,这样的细节描写问你爱不爱

继续阅读“黄金大涨”

从几个单词聊香港大火

《红楼梦》的英文译名,有几种译法,一种是《A Dream of Red Mansions》,一种是《A Dream of Red Chamber》。我特意去查了一下,mansion 和 chamber 这 2 个单词是什么意思,用的字典是《牛津高阶英汉双解词典》。

mansion:a large,impressive house。中文译为公馆,宅邸。大而漂亮的房子,很符合贾家的大门大户。

chamber:a hall in a public building that is used for formal meetings。中文译为会议厅,这个翻译似乎不是很妥当,没有上面的贴切。

自然而然,我也联想到了 house 和 building 是什么。我们也来一起查一下。

house:a building for people to live in,usually for one family。房屋,住宅。只针对一家一户的。

building:a structure such as a house or school that has a roof and walls。建筑物,楼房。这个单词更偏向建筑,不一定指代是家,还有更多钢筋水泥的味道。

继续阅读“从几个单词聊香港大火”

幹工作進度

2025-09-01

这罗永浩老是打断李想的发言,作为一个采访者显得很不专业,没有让其做出完整表达。而且时间长不见得是深度访谈,提问的方式应该层层递进

【李想×罗永浩!四小时马拉松访谈!李想首度公开讲述25年创业之路】

https://www.bilibili.com/video/BV1FwY4zkEef/?share_source=copy_web&vd_source=a6b620917b053db9586b3ee8d0f54ca6

老罗总是在为自己的私欲去提问,不会去考虑观众应该会怎么提问。看创业者的创业故事,也会带来很多启发。比如怎么组建团队,怎么熟悉业务,怎么融资等等

2025-09-02

KeyboardEvent: keyCode property Deprecated

Inconsistent behavior: Different browsers and keyboard layouts can return different values for the same key, making it unreliable for cross-browser use.

Ambiguity: keyCode does not always clearly indicate which key was pressed, especially for non-character keys or when modifier keys are involved.

Css 诞生的背景,一开始居然是用户能改变样式,反而程序员却不能

继续阅读“幹工作進度”

去洞口看寳

2025-08-31

格鲁夫给经理人的第一课,这个书还是很有料,能带来不少启发

要提高超出,第一要培训,让大家成为大佬;第二要激励,要给钱。

脑力劳动不是工厂流水线,设定 kpi 就能搞定,绩效的评定指标和效用没有那么明显。

2025-08-30

chatgpt 是什么时候流行的,感觉现在的大模型满天飞

Anthropic PBC is an American artificial intelligence (AI) startup company founded in 2021. Anthropic has developed a family of large language models (LLMs) named Claude. According to the company, it researches and develops AI to “study their safety properties at the technological frontier” and use this research to deploy safe models for the public.[5][6]

Anthropic was founded by former members of OpenAI, including siblings Daniela Amodei and Dario Amodei.[7] In September 2023, Amazon announced an investment of up to $4 billion, followed by a $2 billion commitment from Google in the following month.

继续阅读“去洞口看寳”

A monad demo given by AI

// Generic Monad structure
class Monad {
  constructor(value) {
    this.value = value;
  }

  // Bind: chains computations that return a Monad
  bind(fn) {
    return fn(this.value);
  }

  // Unit: wraps a value in the Monad
  static of(value) {
    return new Monad(value);
  }

  // For debugging
  get() {
    return this.value;
  }
}

// Example: Maybe Monad
class Maybe extends Monad {
  bind(fn) {
    if (this.value == null) {
      return new Maybe(null);
    }
    return fn(this.value);
  }

  static of(value) {
    return new Maybe(value);
  }

  getOrElse(defaultValue) {
    return this.value == null ? defaultValue : this.value;
  }
}

// Demo: chaining computations with Monad
const double = x => Monad.of(x * 2);
const increment = x => Monad.of(x + 1);

const result = Monad.of(5)
  .bind(double)      // 10
  .bind(increment);  // 11

console.log(result.get()); // Output: 11

// Demo: chaining with Maybe Monad
const safeDivide = x => x === 0 ? Maybe.of(null) : Maybe.of(10 / x);

const maybeResult = Maybe.of(2)
  .bind(safeDivide)       // 10 / 2 = 5
  .bind(x => Maybe.of(x + 3)); // 8

console.log(maybeResult.getOrElse("fail")); // Output: 8

const maybeFail = Maybe.of(0)
  .bind(safeDivide)       // null
  .bind(x => Maybe.of(x + 3));

console.log(maybeFail.getOrElse("fail")); // Output: "fail"