首页
学习
活动
专区
工具
TVP
发布

szhshp 的第四边境中转站

专栏作者
140
文章
89887
阅读量
25
订阅数
《Rust Programming Language》- EX - Cheatsheet
Structs Classic Structs struct ColorClassicStruct { red: i32, green: i32, blue: i32, } let green = ColorClassicStruct { red: 0, green: 255, blue: 0, }; assert_eq!(green.red, 0); assert_eq!(green.green, 255); assert_eq!(green.blu
szhshp
2023-03-09
2930
《Rust Programming Language》- 05 - Packages, Crates And Modules
A crate is the smallest amount of code that the Rust compiler considers at a time.
szhshp
2023-01-05
2490
Rust - 04 - Enums and Pattern Matching
And you can put data directly to the enum values:
szhshp
2023-01-05
2310
Rust - 03 - Structs and Methods
Rust doesn’t allow us to mark only certain fields as mutable. You can only mark whole struct as mutable or immutable.
szhshp
2023-01-05
2760
Rust - 02 - Ownership
When your code calls a function, the values passed into the function (including, potentially, pointers to data on the heap) and the function’s local variables get pushed onto the stack. When the function is over, those values get popped off the stack.
szhshp
2023-01-05
2090
Rust - 01 - Getting Started
For same variable name, the former is shadowed by the latter
szhshp
2023-01-05
2600
两小时 Docker 速成 - Getting Started
镜像是一个 UnionFS (联合文件系统): 实际上是一种分层的, 高性能的, 轻量级的文件系统, 它支持对文件系统的修改作为一次提交来一层层叠加
szhshp
2022-11-02
6020
VSC x VIM - 反正多学几个快捷键没有坏处
当年研究过一段时间 VIM, 因为操作不熟练没有用作主力 IDE, 而是单纯在 CLI 里面用于轻度编辑
szhshp
2022-10-31
1.2K0
VSC x VIM - 反正多学几个快捷键没有坏处
如上配置之后可以通过 <space><space>w{char} 快速跳转到包含特定字母的字符的开头
szhshp
2022-10-31
1.2K0
《The Joy of Javascript》- 1 - Object/Function
早先在 Github 看到人提起这本书, 我简单翻了一下目录, 发现有一些内容还挺有意思, 里面有很多近几年的新方法, 正好补充一些之前开发未涉及的部分.
szhshp
2022-09-21
1880
《The Joy of Javascript》- 2 - Functor/Monad
实现 FP 需要保证一些函数的输入和输出规范化. 以方便 compose 进行链式调用.
szhshp
2022-09-21
2700
《The Joy of Javascript》- 3 - ADT(Algebraic Data Type)
最后在方法里面进行判断, 判断放在外部, 最终返回一个 Validation 类型:
szhshp
2022-09-21
3510
《The Joy of Javascript》- 4 - Meta Programming
使用相同的值重新定义 symbol 将会得到两个完全不同的示例 Symbol('a') !== Symbol('a')
szhshp
2022-09-21
1770
《The Joy of Javascript》- 5 - Data
需要注意的是 for await……of 需要一个对象拥有一个 function-valued symbol property Symbol.asyncIterator, 因此可以如此设计一个对象用于 for await……of
szhshp
2022-09-21
5920
Workbox-Getting Started
然后新建一个文件 service-worker.js , 你们可以写上一个最简单的 registerRoute 方法:
szhshp
2022-09-21
5910
NextJS x Typescript - Integration & Troubleshooting
GitHub pages is a hosting provider for static pages. You can't host APIs on it. If you really want to host on GitHub pages you'll want to use https://github.com/zeit/next.js#static-html-export and not use API routes.
szhshp
2022-09-21
3970
NVM Windows Portable Installation
将 release 的 noinstall version 的链接 copy 上去: https://github.com/coreybutler/nvm-windows/releases/download/1.1.7/nvm-noinstall.zip
szhshp
2022-09-21
3800
吉祥航空随心飞刷票工具循环查票工具
这个就是我花 1h 随手写的小工具, 追求快速达到功能而不会考虑任何的扩展性, 健壮性及专业性
szhshp
2022-09-21
9491
GraphQL: File Upload & Troubleshooting
Due to different dependencies, this may cause some error, see Troubleshooting below
szhshp
2022-09-21
3390
Getting Started: Ionic + Capacitor + React + Typescript + Android
Click File--Sync Project With Gradle Files
szhshp
2022-09-21
4780
点击加载更多
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档