小弧光的博客

公众号:小弧光黑板报

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

12 2022 档案

ohmyzsh git plugins
摘要:https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git Aliases Alias Command g git ga git add gaa git add --all gapa git add --patch gau git add - 阅读全文

posted @ 2022-12-21 10:09 小弧光 阅读(27) 评论(0) 推荐(0) 编辑

如何手工计算平方/立方根?
摘要:https://calcpad.blog/2022/04/28/how-to-calculate-square-cubic-root-by-hand/ 今天,技术让我们的一切变得简单快捷。有时,当我们看到古代的工程奇迹时,我们会想:“他们是如何在没有计算机的情况下设计出来的”?答案是:“凭借知识、灵 阅读全文

posted @ 2022-12-15 09:13 小弧光 阅读(326) 评论(0) 推荐(0) 编辑

选择数学工作表而不是 Excel 电子表格进行结构计算的 5 个理由
摘要:https://calcpad.blog/2022/11/01/5-reasons-to-choose-math-worksheets-over-excel-spreadsheets-for-structural-calculations/ 虽然现在有很多软件,但工程师仍然需要开发自定义计算来解决特 阅读全文

posted @ 2022-12-15 09:11 小弧光 阅读(83) 评论(0) 推荐(0) 编辑

rust tokio 使用
摘要:1、 主函数使用 new 一个 Runtime: let rt = tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap(); rt.block_on(async move { // some task wit 阅读全文

posted @ 2022-12-09 15:33 小弧光 阅读(838) 评论(0) 推荐(0) 编辑

为什么 egui 用立即模式?
摘要:https://github.com/emilk/egui#why-immediate-mode 为什么立即模式 egui是立即模式 GUI 库,与保留模式GUI 库相对。保留模式和立即模式之间的区别最好用按钮的例子来说明:在保留的 GUI 中,您创建一个按钮,将其添加到某些 UI 并安装一些单击处 阅读全文

posted @ 2022-12-07 17:30 小弧光 阅读(2278) 评论(0) 推荐(0) 编辑

ChatGPT 编写的 Rust 二叉树
摘要:// 定义二叉树节点 struct Node { // 节点值 value: i32, // 左子树 left: Option<Box<Node>>, // 右子树 right: Option<Box<Node>>, } // 定义二叉树 struct BinaryTree { // 根节点 roo 阅读全文

posted @ 2022-12-06 09:49 小弧光 阅读(147) 评论(0) 推荐(0) 编辑

tokio file.rs
摘要:mirrors.ustc.edu.cn-12df342d903acd47/tokio-1.21.2/src/fs/file.rs //! Types for working with [`File`]. //! //! [`File`]: File use self::State::*; use c 阅读全文

posted @ 2022-12-05 10:57 小弧光 阅读(47) 评论(0) 推荐(0) 编辑

Rust Cell and RefCell
摘要:https://blog.iany.me/2019/02/rust-cell-and-refcell/ Rust Cell and RefCell In Rust document, Cell is “A mutable memory location”, and RefCell is “A mut 阅读全文

posted @ 2022-12-01 16:02 小弧光 阅读(47) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示