Moment.js display Chinese

Moment.js display Chinese 1, Reference article: moment.js add Chinese language (Chinese) 2, Start 0. Premise background Recently, I was working on a project of wechat applet, in which time stamps are needed. Then I thought of using Moment.js to process the class library, wrote a piece of code, tested it, and the prin ...

Posted by hhawkins on Thu, 02 Apr 2020 23:41:43 -0700

Django + clipper to preview, cut and upload the Avatar

Train of thought: Using the front-end plug-in of clipper, the pictures are cropped. The screenshot generated by clipper is a series of base64 codes, and then it is converted to blob format, which is transmitted to the back-end for storage. In short, it means that the front-end cut pictures are sent to the back-end, rat ...

Posted by Chinese on Thu, 02 Apr 2020 22:24:03 -0700

Dynamic query of jpa

order This paper mainly studies the dynamic query of jpa javax.persistence.criteria jpa absorbs criteria from hibernate, and it can also realize end-to-end dynamic query by using criteria and parsing url query syntax. The following shows the implementation of spring side branch 4. springside branch 4 SearchFilter /**************************** ...

Posted by Noctagon on Thu, 02 Apr 2020 19:46:26 -0700

dotsql of Go Language Library Series

Guide: is it very interesting to be able to carry out a single line or lines of SQL files? Today, let's introduce this interesting Library -- dotsql. Background introduction dotsql is not an ORM or a builder of SQL query statements, but a tool that can carry out several lines in an SQL file, very similar to the reading of ini configuration fi ...

Posted by ~n[EO]n~ on Thu, 02 Apr 2020 19:14:54 -0700

Wechat applet order insert (calendar)

Recently done Small program Development, out of hands-on, but also work needs, made a wechat app similar to the hotel booking calendar plug-in. First of all: This plug-in is divided into two parts: the upper part is the tab column, which will automatically locate to the current according to the current date, and displa ...

Posted by furtivefelon on Thu, 02 Apr 2020 09:42:36 -0700

d3.js to realize slow motion animation

d3.js to realize slow motion animation d3.js to realize slow motion animation 1.js code 2. The animation effect is as follows: Recently learning d3.js , when looking at the latest version of d3.js (v5), we found that there is a function library to achieve the effect of slow motion animation, smooth animation. ...

Posted by habs20 on Wed, 01 Apr 2020 19:25:21 -0700

Ali Dashen teaches you ViewGroup dynamically. Do you still want to see it?

brief introduction Recently, there was a need for nine-picture control similar to WeChat circle of friends in the project. Github looked for it and found that they did not meet the needs. When I need a single picture, I can adjust it to a certain range according to the aspect ratio of the picture. Most open source projects have a single pictu ...

Posted by st0rmer on Wed, 01 Apr 2020 18:38:04 -0700

Custom turntable

In the first part of the new year, I wrote a custom turntable. At present, there are two modes. The specific effects are as follows: Mode 1: pointer mode When the turntable is stopped, the data at the initial position can be obtained As shown in the figure below is the initial state, 0 is the initial position (in the coordin ...

Posted by raghavan20 on Wed, 01 Apr 2020 18:20:37 -0700

Android imitation Alipay numeric keypad

brief introduction In some apps with payment function, the password can only be a pure number. Although we can specify that the EditText input box can only be a number, in order to provide user experience, we tend to use a custom pure number keyboard. Effect of this paper: Customize KeyboardView Implementation steps: ...

Posted by rationalrabbit on Wed, 01 Apr 2020 11:56:38 -0700

A study of Ignite CS mode java

In the form of command line, expanding cluster is to increase Server continuously , in many practical business scenarios, we need to implement CS pattern with Ignite, and this article will provide detailed code. Major maven dependencies: <dependency> <groupId>org.apache.ignite</groupId> ...

Posted by Bit343 on Wed, 01 Apr 2020 04:33:11 -0700