1

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

 1 year ago
source link: https://www.cnblogs.com/xueweihan/p/16641683.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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

759200-20220830211553970-1947632538.png

本周的特推非常得延续上周的特点——会玩,向别人家的女朋友发送早安。这个错误是如何发生的呢?如何有效避免呢?自己用 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 消息推送: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 消息推送:daily_morning

主语言:Python

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

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

759200-20220830211859873-1011793376.png

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

主语言:TypeScript

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

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

759200-20220830211918276-1072972039.png

2. GitHub Trending 周榜

2.1 扩散模型:diffusers

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

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

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

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

759200-20220830211933165-1440574650.jpg

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

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

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

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

759200-20220830211942606-26069559.png

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

759200-20220830211956323-277050670.png

2.5 游戏人物制作:Akebi-GC

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

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

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

759200-20220830212140510-2058917603.png

3. 往期回顾

往期回顾:

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

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK