作者:HelloGitHub-小鱼干
辞旧迎新的日子,又是年度报告满天飞的时候。GitHub 也不落其他平台之后,推出了用户 GitHub Contributions 报告。不知道,今年的你是不是比去年搬了更多的砖呢?在本期的 News 速读中有相关的 Contributions 获取方式;除了官方报告之外,由于国内外都在放新年假,本周热点速览上榜的项目均为老项目,有不可错过的科普可执行文件格式的 pics,也有兼容 SQL 的数据查询语言 PRGL。可视化也占了一席之地,用来观察 Kafka 集群情况的 kafka-ui 上榜;也有为 iOS 开发准备的 IDE AuroraEditor…
以下内容摘录自微博 @HelloGitHub 的 GitHub Trending 及 Hacker News 热帖(简称 HN 热帖),选项标准: 新发布
| 实用
| 有趣
,根据项目 release 时间分类,发布时间不超过 14 day 的项目会标注 New
,无该标志则说明项目 release 超过半月。由于本文篇幅有限,还有部分项目未能在本文展示,望周知 🌝
News 速读·你的 GitHub 年度报告 如果你有一个 GitHub 账号,访问 https://github-contributions.vercel.app/ 输入 ID 就能得到你的 GitHub 报告,比如:这是小鱼干的,看得出来我基本上不咋活跃。
不如,在本文评论区留下你的 2022 年的 Contribution 就此尘封 2022 迎接 2023,我先来:312 ,告诉我这是不是最低的!
1. 本周特推 1.1 文件执行剖析:pics 主语言:Assembly
这绝对是一个宝藏仓库,它收录了一些 pics,在里面讲述了常见执行文件,比如:mp4、jpg、pdf、ascii 这些格式如何执行的,你一定不知道常用的这些文件格式原来是这样工作的,它甚至能告诉你 Java 类是如何构成的。
GitHub 地址→https://github.com/corkami/pics
1.2 手绘风白板:excalidraw 主语言:JavaScript
想画出来手绘风格的流程图,或者是原型吗?excalidraw 可用来进行绘图,它提供了在线工具 https://excalidraw.com/ ,免安装就能用。测试了下,它的模块拖拽敏感度相当不错。
GitHub 地址→https://github.com/excalidraw/excalidraw
2. GitHub Trending 周榜 2.1 数据查询语言:prql 本周 star 增长数:800+, 主语言:Rust
PRQL,全称:Pipelined Relational Query Language,发音: Prequel
是个类 SQL 查询语言,适用于任意 SQL 数据库,因为它可以编译成 SQL 语句。不同于 SQL 的是,它有一个逻辑管道进行数据转换,支持变量、函数之类的抽象。
下面为它的使用示例:
from employees filter start_date > @2021-01-01 # Clear date syntax derive [ # `derive` adds columns / variables gross_salary = salary + (tax ?? 0), # Terse coalesce gross_cost = gross_salary + benefits_cost, # Variables can use other variables ] filter gross_cost > 0 group [title, country] ( # `group` runs a pipeline over each group aggregate [ # `aggregate` reduces each group to a value average gross_salary, sum_gross_cost = sum gross_cost, # `=` sets a column name ] ) filter sum_gross_cost > 100000 # `filter` replaces both of SQL's `WHERE` & `HAVING` derive id = f"{title}_{country}" # F-strings like python derive country_code = s"LEFT(country, 2)" # S-strings allow using SQL as an escape hatch sort [sum_gross_cost, -country] # `-country` means descending order take 1..20 # Range expressions (also valid here as `take 20`)
GitHub 地址→https://github.com/PRQL/prql
2.2 电子书检索:zlib-searcher 本周 star 增长数:700+, 主语言:TypeScript、Rust
如果你常阅读论文、期刊,大概知道 zlib 和 libgen 这两个影子图书馆,它们收录大量学术读物,以及其他书籍的电子版。zlib-searcher 通过这两个网站的索引获取对应 ipfs_cid ,它只是个搜索引擎并不支持直接下载图书,借助 ipfs 来获取对应的知识。
GitHub 地址→https://github.com/zlib-searcher/zlib-searcher
2.3 类 React GUI 库:dioxus 本周 star 增长数:500+, 主语言:Rust
Rust 编写的 GUI 库,可用于生成网页、桌面应用、静态网站、移动端应用、TUI 程序等等。示例如下:
fn app (cx: Scope) -> Element { let mut count = use_state(cx, || 0 ); cx.render(rsx! { h1 { "High-Five counter: {count}" } button { onclick: move |_| count += 1 , "Up high!" } button { onclick: move |_| count -= 1 , "Down low!" } }) }
GitHub 地址→https://github.com/DioxusLabs/dioxus
2.4 编辑器 IDE:AuroraEditor 本周 star 增长数:250+, 主语言:Swift
为 macOS 提供最佳性能和编程体验的 IDE——AuroraEditor,它支持你从 Xcode 获取的一切事项,比如:git provider 的深度集成、项目计划、喜欢的内置编辑器工具。
GitHub 地址→https://github.com/AuroraEditor/AuroraEditor
2.5 Kafka UI:kafka-ui 本周 star 增长数:200+, 主语言:Java、TypeScript
用来管理 Kafka 集群的 Web UI,可直接查看数据流,以便及时发现相关的问题。仪表盘收录了相关的 Kafka 集群指标:Brokers、Topics、Partitions、Production 和 Consumption。
GitHub 地址→https://github.com/provectus/kafka-ui
3. 往期回顾 往期回顾:
以上为 2022 年第 52 个工作周的 GitHub Trending 🎉如果你 Pick 其他好玩、实用的 GitHub 项目,记得来 HelloGitHub issue 区和我们分享下哟 🌝
最后,记得你在本文留言区留下你想看的主题 Repo(限公众号),例如:AI 换头。👀 和之前的送书活动类似,留言点赞 Top3 的小伙伴(棒 ),小鱼干会努力去找 Repo 的^^
HelloGitHub 交流群现已全面开放,添加微信号:HelloGitHub001 为好友入群,可同前端、Java、Go 等各界大佬谈笑风生、切磋技术~
- END -