-
### 初衷/目标
为了我们更方便的写 i18n
初步定义 i18n 文件的格式,不想繁琐,所以拒绝使用JSON
```yaml
# app.i18n.yaml
language:
- en
- zh
- hk
keys:
apple.add:
- Add
- 添加
- 添加
apple.delete…
-
```vue
Hello world
const isCondition = true
const bar = {
...(isCondition ? { a: 1 } : { b: 2 })
}
export default {
data() {
bar
}
}
```
```
! ]…
-
### 初衷/目标
用于防止小说站点被复制粘贴
常见的小说站点的防复制粘贴有几个几下方法:
- [ ] 禁止复制/右键等(轻易可破解,只能阻挡小白用户)
- [ ] 生成图片(可识别,只是提高了门槛,而且用户体验降低)
使用canvas,一定程度上提高破解难度(一样可破解,只要hook进http请求即可), 又能保持一定程度上良好的用户体验
### TODO…
-
When revert 3e6b9bf007862f9acf97b7cdc2dc2c8f6683f110
Each time the progress bar is rendered, an empty line is added.
```go
func main() {
bar := progressbar.Default(100)
for i := 0; i < 100; i++…
-
### 💻
- [ ] Would you like to work on this feature?
### What problem are you trying to solve?
The current comment is a normal node, it cannot be traversed.
**leadingComments** and **trailingComm…
-
最近在研究P2P技术,奈何相关资料不多,自己琢磨了一下,分享一下学习P2P的一些原理, 以及如何打造一个P2P聊天应用。
这里指的P2P是指**peer to peer**, 点对点的技术, 每个客户端都是服务端,没有中心服务器,不是websocket针对某个connection推送消息。
### 技术要点
- udp协议
- 节点之间的建立,连接和广播
- 内网穿透,如何能…
-
### 💻
- [ ] Would you like to work on a fix?
### How are you using Babel?
Programmatic API (`babel.transform`, `babel.parse`)
### Input code
```js
const parser = require('@babel/parser…
-
-
#### 前言:
> 没有什么是非得用 xx 技术才行的,只是 **能用** 和 **好用** 的区别
> 有些习惯了老旧的工作方式,不愿去学习,不愿意去改变,追求 “能用就行”
> 有些不单追求能用,还有提升的空间,追去好用
> It's up to you!
### 为什么需要 Docker?
在上一家公司,操作系统是自由的,你想用 Windows/Linux/Mac,…
-
不要陷入技术魔咒
> 如果你是业内有名的技术大牛,那么可以略过这篇文章
我呢,是很喜欢技术研究,喜欢开源,喜欢写库,写工具。
以前呢,觉得这些东西很炫,做出来很有成就感
但是最近发生了很多事
给了我很多感悟,有感而发,写出来分享一下。
### 技术饭长久不长久?
如果你不是 BAT 内 P7+/T3+ 这个阶梯的技术大神,那么其他都不是关键。
之前不…