摘要: PowerToys 无界鼠标 可以用一个鼠标跳转到不同电脑,并且允许同步剪贴板(包括100MB内的文件),是一个挺强大的免费功能。 不过这个功能存在限制:要求所有计算机都在同一网络上连接,这在家庭 WIFI 环境下很容易满足,但是校园网环境或办公网络环境下比较棘手。 类似的实现途径,据我所知有罗技鼠 阅读全文
posted @ 2024-01-06 19:42 BuckyI 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 推导式是 Python 中十分常用且好用的语法 ls = [1, 2, 3, 4, 5, 6, 7] lss = [i**2 for i in ls if i%2] 在 C++ 中没有这样的语法,用循环的话感觉不够优雅(? XD),感觉可以这样 std::vector<int> v{1, 2, 3, 阅读全文
posted @ 2024-01-04 16:03 BuckyI 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 很喜欢用 perplexity 作为 ai 搜索工具,但是不想每次搜索这个网站打开,然后搜索我真正想查找的内容。 以后只需要输入 @ai 再加空格,就可以快速使用它进行搜索了! 阅读全文
posted @ 2024-01-03 11:43 BuckyI 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 创建存储桶:仪表盘 -- R2 -- 创建存储桶 R2 界面右上角 -- 管理 R2 API 令牌 -- 创建 API 令牌 cloudflare/python-cloudflare: Python wrapper for the Cloudflare Client API v4 python AP 阅读全文
posted @ 2024-01-01 17:44 BuckyI 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 起因是,我想把 SumatraPDF 设置为默认的 PDF 阅读器,但是软件内设置不管用,每次打开都是 Edge。 单纯这样设置并不管用,找了很久也没找到设置项,Disable the Default Built-In PDF Viewer in Chrome, Firefox, Edge, Saf 阅读全文
posted @ 2023-12-19 15:07 BuckyI 阅读(1329) 评论(0) 推荐(0) 编辑
摘要: 有时候需要逆向循环,例如从字符串的最右端遍历到最左端,需要注意一些细节!初学遇到一些 bug 记录在这里。 首先 arr.size() 的数据类型为 size_t,为无符号整型 对于 for (int idx = arr.size() - 1; idx >= 0; idx--): 使用 int 作为 阅读全文
posted @ 2023-12-19 11:14 BuckyI 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 假设现在有一个数组存储了成绩信息,要获得前三名 #include <iostream> #include <vector> #include <algorithm> std::vector<int> scores{10, 30, 90, 30, 100, 20, 10, 0, 30, 40, 40, 阅读全文
posted @ 2023-12-19 10:55 BuckyI 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 突发奇想想实现一个对事件发生进行预测的程序,例如根据历史上每次出现月食的时间,推测下次出现月食的时间。下面是我的一个简单实现(对时间序列预测并不了解,所以我相信有更合适的源数据处理方法和更优秀的算法模型可以用),日后有机会再优化!😎 由于“发生”/“不发生”是一种离散的数据,我不知道有没有对应的合 阅读全文
posted @ 2023-12-12 15:33 BuckyI 阅读(45) 评论(0) 推荐(1) 编辑
摘要: 题目 Given a number n, the task is to find out whether this number is a Smith number or not. A Smith number is a composite number whose sum of digits is 阅读全文
posted @ 2023-12-10 19:25 BuckyI 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 目前探索出来的有效方法: style = """ <style> .memo-box { border: 1px solid #ccc; padding: 10px; margin-bottom: 20px; } .tag { font-size: 12px; color: #888; } </st 阅读全文
posted @ 2023-12-03 15:28 BuckyI 阅读(1077) 评论(0) 推荐(0) 编辑