Showing 1-8 of 8 posts
获取OneDrive教育版账号
2/18/2021, 9:47:42 AM
OneDrive用教育邮箱(edu后缀)注册可以获得免费的1TB空间。 然而,对于还不是大学生的人(如我),搞到一个edu邮箱还是比较困难的。 不过这两天搞到了一个不错的网站,可以用蛮便宜的价格买到直接注册好的教育OD账号。 拿来存和分享不太重要的文件十分划算。
在Electron中使用Worker thread
1/17/2021, 8:13:11 AM
Electron的main process
本质就是一个NodeJS进程。由于NodeJS是
单线程模型,如果一个Electron应用需要起一个HTTP Server或是执行
大量的CPU密集操作,最好使用多线程。所幸,NodeJS已经提供了一个
多线程方案——worker_threads
内部模块。下面记录一下在Electron中
使用其的方法和坑点。
对Vue functional组件的尝试与小结
1/12/2021, 12:52:22 PM
1/12/2021, 1:08:57 PM
Vue组件由于具有自己的状态,计算开销相对较大。对于简单而大量重复的的组件,这会带来较大的性能开销。 而Vue函数式组件的出现,则让构建轻量级组件成为了可能。下面将粗略介绍Vue functional component。注意:这里并没有使用SFC。
BML Specification
12/11/2020, 11:30:18 AM
Block markup language (BML) is a (pseudo?) markup language used in ZCMS. The syntax is like:
<md boolattr attr="value">
## somthing...
</md>
<code[id]>
only the end tag with the same name and [id] will be
regarded as valid end tag.
</code[id]>
Here are Specification for it.
Hello World
11/21/2020, 12:59:24 PM
This is the test post for ZZisu.dev
Here's the post summary.
console.log((() => 'Hello world!')())