How to refactor object oriented 83 lines of code

Introduction: the 3rd 83 line code challenge in 2021 hosted by Alibaba cloud has ended. More than 20000 people watched, nearly 4000 people participated, and 85 teams came in groups. The competition adopts game breakthrough playing method, integrating meta universe science fiction and script killing elements, so that a group of developers have a ...

Posted by khayll on Mon, 29 Nov 2021 15:02:12 -0800

Echo Framework: Turn on TLS/SSL

introduceWith a complete example, turning on TLS/SSL in the Echo framework is what we call https.We will use rk-boot To start the microservice for the Echo framework.Visit the following address for the complete tutorial:https://rkdocs.netlify.app/cnGenerate Self-Signed CertificateUsers can purchase certificates from major cloud vendors or use t ...

Posted by vidago on Mon, 29 Nov 2021 14:49:46 -0800

Vue3+Vite+Ts+Antd2.x project construction

NPMnpm init @vitejs/appYarnyarn create @vitejs/appProject build (Ts version)npm 6.x npm init @vitejs/app vue-admin-pro --template vue-tsnpm 7 +, additional double horizontal lines are required: npm init @vitejs/app vue-admin-pro -- --template vue-tsyarn yarn create @vitejs/app vue-admin-pro --template vue-tsSupported template presets include ...

Posted by dourvas on Mon, 29 Nov 2021 14:30:47 -0800

python batch ppt to picture, pdf to picture, word to picture script

prefaceOne day, when we were in the editing background, we said that every time we upload ppt, pdf and word, we should export the pictures of each file first, and then upload them one by one (png is used as preview, ppt, pdf and word source files cannot be downloaded directly). We said that the efficiency is too low. We asked if there is any wa ...

Posted by shadiadi on Mon, 29 Nov 2021 14:16:34 -0800

Login registration interface test

Make a simple login registration page In the past few days, I have learned about the java graphical user interface (GUI) and started to make a simple login interface. I don't talk much nonsense 1. Login interface The so-called design of a UI interface is nothing more than two layered modules: one UI display design involves some aesthetic con ...

Posted by drew69 on Mon, 29 Nov 2021 14:06:09 -0800

About arrays of functions

1, What is an array 1. An array is a set of ordered data 2. That is, we put some data in a box and arrange them in order. This thing is an array and a collection of data 3. We can see that all data types are divided into two categories: a.Basic data types: (five categories) number/string/boolean/undefined/null b.Complex data type:Ob ...

Posted by corsc on Mon, 29 Nov 2021 13:59:03 -0800

Promise in js

I. overview Promise is a solution for asynchronous programming, which can replace the traditional solution - callback functions and events. ES6 unifies usage and provides native promise objects. As an object, promise has the following two characteristics: * (1) the state of the object is not affected by the outside world* (2) Once the state ch ...

Posted by lovelyvik293 on Mon, 29 Nov 2021 13:56:27 -0800

Nginx easy tutorial

Nginx This project is a minimalist tutorial of Nginx, which aims to help novices get started with Nginx quickly. demos   The examples in the directory simulate some common practical scenarios in work, and can be started by script with one click, so that you can quickly see the demonstration effect. summaryInstallation and use i ...

Posted by EagerWolf on Mon, 29 Nov 2021 13:54:17 -0800

Application scenario analysis of Android jetpack livedata

Livedata overviewLiveData is an observable data storage class. Unlike conventional observable classes, LiveData has life cycle awarenessIf the life cycle of an observer (represented by the Observer class) is in the STARTED or RESUMED state, LiveData will assume that the observer is active.. LiveData only notifies active observers of updates. In ...

Posted by Daleeburg on Mon, 29 Nov 2021 13:50:09 -0800

Solve ImportError: No module named rospkg by specifying a python interpreter

When I first wrote a blog, there were too many solutions to similar problems on CSDN, but they couldn't solve my problem. This time, it was not easy to solve my problem. I hope to record this solution and help students with similar problems. Maybe it's written incorrectly, maybe it's written so that people don't understand it. In fact, the p ...

Posted by Major Tom on Mon, 29 Nov 2021 13:50:18 -0800