Spring Boot [How to Document Elegantly]

Guidance: Interface documentation is often used when working together as a team. Often we write a lot of documents in repetitive formats by hand, which reminds me of two things programmers hate most: writing documents without them.Ha-ha, if you've used swagger, your friends should know all about its convenience. If you haven't used swagger yet, ...

Posted by PBD817 on Tue, 02 Jul 2019 18:44:16 +0200

Implementation Skills of restful Project's Privilege Control

Preface Recent projects are written in a restful style. Sure enough, URLs are meaningful and functions can be inferred from urls. One of the biggest sensory differences between restful URLs and non-restful URLs is that there may be some variables in restful urls, such as the following: / check/api/user/12345/history, which is interpreted as: T ...

Posted by gregor63 on Tue, 02 Jul 2019 00:17:43 +0200

How Square Company Writes Submission Information

https://imgs.xkcd.com/comics/git_commit_2x.png How Square Company Writes Submission Information Explanation of change Submitting information in Square is an important form of communication, so it is a good way to save time for everyone to write the submission information well. We often hope that we can do better in the past. The submissions w ...

Posted by Toneboy on Fri, 28 Jun 2019 21:44:17 +0200

How to Implement a Long Type-Long.js Source Code Learning and Analysis in JavaScript

background Because of the use of WebSocket's custom binary protocol in the project, it is necessary to convert the binary to Long type defined in the back-end service. The Number type in JavaScript, for its own reasons, does not fully represent Long-type numbers, so we need to store Long-type values in other ways. target In GitHub, there is an ...

Posted by mchannel on Wed, 26 Jun 2019 21:38:40 +0200

Get iOS arbitrary threaded call stack (4) Symbolized Reality

From: http://blog.csdn.net/jasonblog/article/details/49909209 1. Related API s and data structures Since we get a set of addresses from the backtrace thread call stack above, the input and output symbolized here should be addresses and symbols respectively, and the interface design is similar to the following: - (NSString *)symbolicat ...

Posted by jamess on Wed, 26 Jun 2019 18:14:00 +0200

Primary JS realizes the three-level linkage selection of provinces, cities and counties

Original address Look at it. Write in front Some time ago, I wrote something about the weather. The choice of cities in the provinces and cities (counties) made me very headache. Most of the searches on the Internet relied on plug-ins or third-party libraries. I felt that the code would be very heavy, so I simply realized several ways ...

Posted by mukeshgulia on Mon, 24 Jun 2019 00:27:46 +0200

A small example of time series prediction using LSTM

Question: Flight passenger forecast Data: 12 years from 1949 to 1960, 12 months a year, 144 data in 1000 units Download Address Target: Forecast the number of passengers on international flights in the next month import numpy import matplotlib.pyplot as plt from pandas import read_csv import math from keras.models import Sequential from k ...

Posted by MartinAW on Fri, 21 Jun 2019 19:08:34 +0200

Linux - Some Skills for Writing Shell

1. Add comments to scripts Annotations in scripts can help you or others understand what different parts of the script do when they look through your script. Annotations are defined with #. 2. Exit the script when it fails to run Sometimes even if some commands fail, bash may continue to execute the script, affecting the rest of the scrip ...

Posted by ryanb on Mon, 17 Jun 2019 02:12:21 +0200

One line of code for multiple-choice batch operation of RecyclerView

One line of code for multiple-choice batch operation of RecyclerView MultiSelectAdapter project address Loading Part B In the ancient days of Android, if people wanted to display lists, they needed ListView. It was simple but not flexible. Then, Google introduced a new alternative RecyclerView. RecyclerView was really flexible. You can ...

Posted by priya_cks on Sat, 15 Jun 2019 22:13:07 +0200

Translation | React form: Refs usage

Original address: React Forms: Using Refs Author: Loren Stewart Translator: Sprouting Proofreader: Little boy Translation | React form: Refs usage React provides two standard methods for getting values from <form> elements. The first approach is to implement so-called controlled components (see me). Articles published in blogs The s ...

Posted by whare on Sat, 15 Jun 2019 00:28:42 +0200