Skip to content

Instantly share code, notes, and snippets.

@Lantianyou
Lantianyou / machine.js
Last active April 10, 2021 07:46
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Lantianyou
Lantianyou / event-loop.md
Created June 7, 2022 04:42 — forked from jesstelford/event-loop.md
What is the JS Event Loop and Call Stack?

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code

@Lantianyou
Lantianyou / wifeyalpha_books.md
Created December 15, 2022 06:07 — forked from danwagnerco/wifeyalpha_books.md
WifeyAlpha recommended reading

一般来讲,第一轮融资都非常难,尤其是在从没有创业/管理经验背书或者强硬的关系下。Peter Thiel 透露过 PayPal 的第一轮融资非常难,各种曲折。随着股市的冷淡,IPO 数量变少,投资退出渠道变小,宏观环境也大不如疫情前更不如疫情泡沫时。下边是我收集的国内外种子轮融资渠道

国内

国内比较麻烦,很多投资人的 email 很难找,甚至微信都不是亲自管的,最靠谱的还是奇迹论坛和线下拜访,这里有一份类似经历 https://b23.tv/F6KH17c

Keybase proof

I hereby claim:

  • I am lantianyou on github.
  • I am dtlantianyou (https://keybase.io/dtlantianyou) on keybase.
  • I have a public key ASB3aYWH0sZWQv0wHFvwjD08KlRx5SKBPn9j5HcywfHeEAo

To claim this, I am signing this object:

#生成公钥私钥对
openssl genpkey -algorithm RSA -out private_key.pem
openssl rsa -pubout -in private_key.pem -out public_key.pem
#将公钥分享给其他人,私钥自己保存
#其他人用公钥加密信息,然后发给你,你用私钥解密信息
#用公钥加密信息,plaintext.txt 是要加密的文件,encrypted.txt 是加密后的文件
openssl pkeyutl -encrypt -pubin -inkey public_key.pem -in plaintext.txt -out encrypted.txt