computed -- real time calculation attribute

Project: https://github.com/ccyinghua/vue-node-mongodb-project/blob/master/07-shoppingCart.md The calculated function of real-time calculation attributes, real-time calculation attributes, is just the function writing method, and there is no need to declare in data. Some business logic codes can be placed in computed. Remember to return. exampl ...

Added by Blob on Sun, 03 May 2020 01:11:13 +0300

Custom sprinkled beans

First on the renderings The effect of sprinkling beans, a whim, thought the animation was very interesting, so I took the time to write a play Drawing process: Define 6 "beans". Each bean has its own attributes, size, throwing speed, etc. then control the direction and state of each bean. The rebound effect uses the differencing devi ...

Added by klaibert26 on Fri, 01 May 2020 20:33:28 +0300

Custom View - draw a moving Tai Chi diagram

Effect Taiji.gif Step breakdown Regular figures like Taiji are usually decomposed into basic figures by mathematical knowledge, such as line segment, circle, rectangle, sector, polygon, etc., and then drawn step by step. Decomposing Taiji diagram @Override protected void onDraw(Canvas canvas) { int width = getWidt ...

Added by sasikumar81 on Fri, 01 May 2020 02:44:01 +0300

java car rental system code

Sketch The first year of college. java car rental system code Operation result: Console: The above is the overall implementation effect. Analysis I store the car as an array: public class Car { String[ ] name = new String[50]; int[ ] state = new int[50]; String[ ] date=new String[50]; ...

Added by adrianl on Thu, 30 Apr 2020 22:58:10 +0300

Using PhotoView to view pictures

The project needs to realize the function of picture viewing. Using ImageView can't scale, using the system's picture viewer can't meet their own customized needs, so I used Viewpager + PhotoView to realize it. Introducing PhotoView Github link for PhotoView , PhotoView is designed to help developers easily scale Android ImageView. 1. Conf ...

Added by yanisdon on Thu, 30 Apr 2020 17:22:01 +0300

Fastlane automated packaging notes

Install fastlane github warehouse: https://github.com/fastlane/fastlane fastlane official website: https://docs.fastlane.tools/ fastlane actions: https://docs.fastlane.tools/actions/ A configuration document: https://www.jianshu.com/p/0a113f754c09 Upload to dandelion: https://www.pgyer.com/doc/view/fastlane An example of a custom lanes group: h ...

Added by stc7outlaw on Thu, 30 Apr 2020 12:03:09 +0300

A good paging plug-in of Mybatis com.github.pagehelper

1. Need to import the jar package of PageHelper If maven is not used, just import the jar package into the lib folder. The PageHelper plug-in has open source on github, Address: https://github.com/pagehelper/Mybatis-PageHelper/tree/master/src/main/java/com/github/pagehelper.   If maven is used, the plug-in can be introduced in pom.xml as fol ...

Added by Arnerd on Wed, 29 Apr 2020 18:57:15 +0300

Recommend a better HTTP(S) proxy server than fiddlecore

Original text: Recommend a better HTTP(S) proxy server than fiddlecore Why not Fiddler core? When it comes to Fiddler core, you may not be familiar with it, so its brother Fiddler is familiar with it. I usually use it to grab packets, simulate low bandwidth, and modify requests. Fiddler is essentially an HTTP proxy server. FiddlerCore is ...

Added by Valdhor on Tue, 28 Apr 2020 12:22:48 +0300

LeetCode 33. Search rotation sort array

My LeetCode: https://leetcode-cn.com/u/ituring/ My LeetCode source code [GitHub]: https://github.com/izhoujie/Algorithmcii LeetCode 33. Search rotation sort array subject Let's say that the array sorted in ascending order is rotated at a pre-known point. (for example, the array [0,1,2,4,5,6,7] may change to [4,5,6,7,0,1,2]). Search a given ta ...

Added by Miker on Tue, 28 Apr 2020 08:50:43 +0300

gorm series - Update

Catalog Gorm update operation Update all fields Update modified fields Update selected fields No Hooks updates Batch update Update with SQL expression Modify values in Hooks Other update options Gorm update operation Update all fields Save() updates all fields of the object by default, even if you don't have an assignment. package main im ...

Added by deft on Mon, 27 Apr 2020 18:54:52 +0300