• 100 个常见错误「GitHub 热点速览 v.22.35」


    本周的特推非常得延续上周的特点——会玩,向别人家的女朋友发送早安。这个错误是如何发生的呢?如何有效避免呢?自己用 daily_morning 免部署、定制一个早安小助手给女友吧。

    除了生活中的错误,工作中的 Golang 使用错误怎么办?100-go-mistakes 收录了 100 个错误发生场景和最佳实践,有效避免加班修 Bug。

    此外,还有 TS 的新手教程无痛绕坑上手新语言,surrealdb 开启云数据库模式来体验一把 Node.js 的爬虫工具。

    以下内容摘录自微博@HelloGitHub 的 GitHub Trending 及 Hacker News 热帖(简称 HN 热帖),选项标准:新发布 | 实用 | 有趣,根据项目 release 时间分类,发布时间不超过 14 day 的项目会标注 New,无该标志则说明项目 release 超过半月。由于本文篇幅有限,还有部分项目未能在本文展示,望周知 🌝

    • 本文目录
        1. 本周特推
        • 1.1 消息推送:daily_morning
        • 1.2 TS 交互课程:beginners-typescript-tutorial
        1. GitHub Trending 周榜
        • 2.1 扩散模型:diffusers
        • 2.2 100 个 Go 常见错误:100-go-mistakes
        • 2.3 爬虫工具:crawlee
        • 2.4 云原生数据库:surrealdb
        • 2.5 游戏人物制作:Akebi-GC
        1. 往期回顾

    1. 本周特推

    1.1 消息推送:daily_morning

    主语言:Python

    New “每日早安推送给别人家的女朋友”,这是一款免搭建、免定时、免编码,极易上手的消息推送工具。通过微信公众号的方式向自己(他人)的女朋友推送信息。项目有相对应的教程截图,还是很友好的。

    GitHub 地址→https://github.com/rxrw/daily_morning

    1.2 TS 交互课程:beginners-typescript-tutorial

    主语言:TypeScript

    New 一个面向初学者友好的交互式 TypeScript 教程,配有相对应的练习。

    GitHub 地址→https://github.com/total-typescript/beginners-typescript-tutorial

    2.1 扩散模型:diffusers

    本周 star 增长数:1,700+主语言:Python

    Diffusers 提供了跨模态(例如视觉和音频)的预处理扩散模型,并可用作推理和训练扩散模型的模块化工具箱。特性:

    • 几行代码实现推断;
    • 多种噪音调度器;
    • 支持多种模型;
    • 培训示例展示扩散模型;
    • 推理示例展示如何为优先级更好的任务创建定制管道,比如:image2image;

    GitHub 地址→https://github.com/huggingface/diffusers

    2.2 100 个 Go 常见错误:100-go-mistakes

    本周 star 增长数:550+主语言:Go

    如何避免这 100 个常见的 Go 使用错误呢?100-go-mistakes 收录了具体的错误场景和最佳实践。

    GitHub 地址→https://github.com/teivah/100-go-mistakes

    2.3 爬虫工具:crawlee

    本周 star 增长数:2,000+主语言:TypeScript

    一个供 Node.js 用的网页、浏览器爬取工具,可快速构建爬虫。通过下面的方式你可以在自己的项目中使用它(前提:装好 Playwright

    import { PlaywrightCrawler, Dataset } from 'crawlee';
    
    // PlaywrightCrawler crawls the web using a headless
    // browser controlled by the Playwright library.
    const crawler = new PlaywrightCrawler({
        // Use the requestHandler to process each of the crawled pages.
        async requestHandler({ request, page, enqueueLinks, log }) {
            const title = await page.title();
            log.info(`Title of ${request.loadedUrl} is '${title}'`);
    
            // Save results as JSON to ./storage/datasets/default
            await Dataset.pushData({ title, url: request.loadedUrl });
    
            // Extract links from the current page
            // and add them to the crawling queue.
            await enqueueLinks();
        },
        // Uncomment this option to see the browser window.
        // headless: false,
    });
    
    // Add first URL to the queue and start the crawl.
    await crawler.run(['https://crawlee.dev']);
    

    GitHub 地址→https://github.com/apify/crawlee

    2.4 云原生数据库:surrealdb

    本周 star 增长数:2,850+主语言:Rust

    一个用于实时网络的可扩展、分布式、可协作的文档图数据库。它通过简化数据库和 API 栈来减少应用程序的开发时间。SurrealDB 可以作为单机运行,也支持以高可用、高可扩展的分布式形式运行。它支持来自客户端设备的 SQL 查询、GraphQL、ACID、WebSocket、结构化和非结构化数据处理、全文索引、地理空间查询及权限控制。

    GitHub 地址→https://github.com/surrealdb/surrealdb

    2.5 游戏人物制作:Akebi-GC

    本周 star 增长数:300+主语言:C++

    可用来开发游戏的男女角色,项目用了原神来做 Demo 展示了地图传送、Noclip 等常见游戏场景。

    GitHub 地址→https://github.com/Akebi-Group/Akebi-GC

    3. 往期回顾

    往期回顾:

    以上为 2022 年第 35 个工作周的 GitHub Trending 🎉如果你 Pick 其他好玩、实用的 GitHub 项目,记得来 HelloGitHub issue 区和我们分享下哟 🌝

    HelloGitHub 交流群现已全面开放,添加微信号:HelloGitHub001 为好友入群,可同前端、Java、Go 等各界大佬谈笑风生、切磋技术~

  • 相关阅读:
    设计模式--组合模式(Composite Pattern)
    多表之间存在父子级关系:根据某一级,查询所有子级 & 构建树结构数据
    【css揭秘】- 47个不可不知的 css 技巧(上篇0-19)
    【Postman接口测试】第三节.第二节.Postman界面功能介绍(下)
    Spring Cloud OpenFeign - - - >拦截器
    自定义表格标签
    Android面试题汇总(二)
    Service:服务发现与负载均衡
    十大热门骨传导蓝牙耳机排行榜,精选最佳的五款骨传导蓝牙耳机
    LINUX之ftp服务-2
  • 原文地址:https://www.cnblogs.com/xueweihan/p/16641683.html