编程知识 cdmana.com

[Issue 9] GitHub hot list this week

767da9765db54bc3fd8b9966a55823e8.png

【 The ninth issue 】

hello , Hello everyone , I'm Kaiyuan Jun , One Veteran Internet players , We are committed to sharing high quality open source projects in various fields .

Today, let's sort out this week's Github Hot list items . Without silicon, you can walk thousands of miles , Not small flow into the sea ; Through the accumulation of open source projects , It is also a process of slow qualitative change .

JavaScript

30-seconds-of-code

Project address :https://github.com/30-seconds/30-seconds-of-code

Official website address :https://www.30secondsofcode.org/

brief introduction

The project provides a brief JavaScript Code snippets to meet your development needs . stay GitHub There are a lot of code snippets in the warehouse , There is an index on the official website .

859e4d581b76e19a5c7723427321168a.png e43365f523d1f2aaa84de6d54261a8ab.png

stay JavaScript There are the following fragments in the classified array , Get the full path of the file in the array , Three different methods are used :

// for  loop 
const files = [ 'foo.txt ', '.bar', '   ', 'baz.foo' ];
let filePaths = [];

for (let file of files) {
  const fileName = file.trim();
  if(fileName) {
    const filePath = `~/cool_app/${fileName}`;
    filePaths.push(filePath);
  }
}

// filePaths = [ '~/cool_app/foo.txt', '~/cool_app/.bar', '~/cool_app/baz.foo']
// reduce  Method 
const files = [ 'foo.txt ', '.bar', '   ', 'baz.foo' ];
const filePaths = files.reduce((acc, file) => {
  const fileName = file.trim();
  if(fileName) {
    const filePath = `~/cool_app/${fileName}`;
    acc.push(filePath);
  }
  return acc;
}, []);

// filePaths = [ '~/cool_app/foo.txt', '~/cool_app/.bar', '~/cool_app/baz.foo']
//  Array method chain call 
const files = [ 'foo.txt ', '.bar', '   ', 'baz.foo' ];
const filePaths = files
  .map(file => file.trim())
  .filter(Boolean)
  .map(fileName => `~/cool_app/${fileName}`);

This is just one example , There are many similar examples , I feel full of dry goods. Is there any .

It harvested about... This week 1,323 individual star, A total of 86,050 star.

material-ui

Project address :https://github.com/mui-org/material-ui

Official website address :https://mui.com/

brief introduction

8f91a32eb74f099f7b93fbd76792af4a.png

material-ui It's a simple one 、 Customizable component library , Used to build faster 、 More beautiful 、 Easier to access React Applications , Some well-known companies are using the component library .

47d95705e9024b42a34d4dc529c8872e.png

The components inside are quite complete , It's also quite exquisite .

c0d906a5c5875e3e50c30bdc0b0a3b89.png 8d6a7ce21a79d661ee7be65d1610d39c.png 213b5c3100055d0f42588b051fc1dcac.png

It harvested about... This week 551 individual star, A total of 71,713 star.

Java

spring-analysis

Project address :https://github.com/seaswalker/spring-analysis

brief introduction

Spring Relevant component source code reading notes . Contains :

  • spring-core

  • spring-aop

  • spring-context

  • spring-task

  • spring-transaction

  • spring-mvc

  • guava-cache

It harvested about... This week 205 individual star, A total of 10,708 star.

Sa-Token

Project address :https://github.com/dromara/Sa-Token

brief introduction

940e8a6b3e8e787fafc66deb02738492.png

Sa-Token It's a lightweight Java Authorization framework , Main solution : Login authentication 、 Permission authentication 、Session conversation 、 Single sign on 、OAuth2.0、 Micro service gateway Authentication And so on , Function as follows :

  • Login authentication —— Single ended login 、 Multi terminal login 、 Peer exclusive login 、 Login free within seven days

  • Permission authentication —— Permission authentication 、 Role authentication 、 Session level 2 authentication

  • Session conversation —— Full end sharing Session、 Single end exclusive Session、 Customize Session

  • Kick people off the line —— According to account number id Kick people off the line 、 according to Token On duty kicker

  • Account banned —— Specified days blocked 、 Permanent ban 、 Set unsealing time

  • Persistence layer extension —— Integrable Redis、Memcached And so on , Restart without data loss

  • Distributed session —— Provide jwt Integrate 、 There are two distributed session schemes in shared data center

  • Micro service gateway Authentication —— adapter Gateway、ShenYu、Zuul And other common gateways

  • Single sign on —— Built in three single sign on modes : Whether cross domain or not 、 Share or not Redis, It can be done

  • OAuth2.0 authentication —— be based on RFC-6749 Standard writing ,OAuth2.0 Authorization and certification of standard processes , Support openid Pattern

  • Secondary Certification —— Authenticate again on the basis of logged in , Guarantee safety

  • Basic authentication —— One line code access Http Basic authentication

  • Independent Redis —— Separate the permission cache from the business cache

  • temporary Token verification —— Solve short-term problems Token Authorization issues

  • Impersonate someone else's account —— Real time operation of any user state data

  • Temporary identity switch —— Temporarily switch the session identity to another account

  • Separation of front and rear platform —— APP、 Applets, etc. are not supported Cookie Terminal

  • Peer exclusive login —— image QQ The same mobile phone and computer are online at the same time , But the two phones are mutually exclusive login

  • Multi account authentication system —— Like a mall project user Table and admin Table separate authentication

  • fancy token Generate —— Built in six Token style , Still can : Customize Token Generation strategy 、 Customize Token Prefix

  • Annotation Authentication —— Elegant separation of authentication and business code

  • Route interception Authentication —— Intercept authentication according to the route , To fit restful Pattern

  • Automatic renewal —— There are two kinds of Token Expiration strategy , Use it flexibly , It can also be renewed automatically

  • Conversation governance —— Provide convenient and flexible session query interface

  • Remember my pattern —— adapter [ Remember me ] Pattern , Restart the browser to verify

  • Password encryption —— Provide password encryption module , Fast MD5、SHA1、SHA256、AES、RSA encryption

  • Global listeners —— Login at user 、 Cancellation 、 When you are kicked off the line and other key operations, do some AOP operation

  • Open the box —— Provide SpringMVC、WebFlux Etc web frame starter Integration package , Real out of the box

It harvested about... This week 153 individual star, A total of 6,290 star.

Python

rich

Project address :https://github.com/willmcgugan/rich

brief introduction

Rich It's a Python library , Can provide you with rich text and elegant format in the terminal . By running a script or entering a script, you can display various coquettish styles .

701f6eea0a9b0ef08121b0697b0235ce.png

368bc121b10a31696b54943fa036acec.png

df94bfa5464e3440e8662f1ef13d7629.gif

It harvested about... This week 515 individual star, A total of 29,284 star.

RobustVideoMatting

Project address :https://github.com/PeterL1n/RobustVideoMatting

brief introduction

This RVM The project is designed for stable character video matting . Different from the existing neural networks, each frame is treated as a separate picture ,RVM Use recurrent neural networks , There is time memory when processing video streams .RVM Real Time HD matting can be done on any video . stay Nvidia GTX 1080Ti Implemented on 4K 76FPS and HD 104FPS. The research comes from the following aspects .

1462e9bd383fc6a8cd4b0537a4b4dbd9.png 5b419780a0151ae2d9681b55b2f91c87.png 912e1c3bb42a1334555987dc5e33aa0d.png

The effect of picking figures from the video is still great , The details of the hair are pulled out .

It harvested about... This week 1,762 individual star, A total of 2,602 star.

lately , Kaiyuan Jun built a Open source guide exchange group , Welcome to exchange excellent open source projects and fishing , Reply in the official account background 【666】 Invite you to join the group .

Last , To encourage open source give the thumbs-up + Looking at Don't you come , I wish you all programmers development without Bug, Make a fortune , Universiade .

more Github How to use and play the project , Click on the card below .

版权声明
本文为[The smile is pure]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/10/20211002145545965L.html

Scroll to Top