Vue state management Vuex

1. Overview As a plug-in, Vuex manages and maintains the component state of the whole project.   2. Install vuex cnpm i --save vuex   3. Use of vuex github address: https://github.com/MengFangui/Vuex new Vue({ el: '#app', router: router, //Use vuex store: store, render: h => { return h(App) } ...

Posted by Gurzi on Sun, 03 May 2020 22:22:07 +0200

Change Actionbar, use of Toolbar

1, Change style First, change the style of the system to the style without ActionBar, set the color of the theme, and then reference the style. <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark ...

Posted by sander_ESP on Sat, 02 May 2020 21:06:57 +0200

The effect of a simple rolling number

1. Renderings 2. Custom attributes textColor font color textSize font size Time displayed in duration text 3. Instructions Step 1. Add it in your root build.gradle at the end of repositories: allprojects { repositories { ... maven { url 'https://jitpack.io' } } ...

Posted by r3drain on Thu, 30 Apr 2020 15:14:46 +0200

Flutter writes an iOS style address book

This article mainly introduces how to use the Cupertino style control of Flutter to write an iOS style address book, as well as the problems encountered in the process and solutions. When you write apps with Flutter, you will generally use material style controls. Because material style controls are rich, but they will appear Android flavor on ...

Posted by Shamrox on Tue, 28 Apr 2020 22:09:31 +0200

Search in two-dimensional array

Title Description Given a two-dimensional array, each row is incrementally sorted from left to right, and from top to bottom. Given a number, determine whether the number is in the two-dimensional array. Consider the following matrix: [ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19], [3, 6, 9, 16, 22], [10, 13, 14, 17, 24], [18, 21, 23 ...

Posted by mailtome on Tue, 28 Apr 2020 16:56:30 +0200

The use of predicate chain in java 8

The use of predicate chain in java 8 brief introduction Predicate is a functional interface, which represents a method that needs to enter a parameter and return the boolean type. Usually used in stream filter to indicate whether the filter conditions are met. boolean test(T t); Basic use Let's first look at how to use Predicate in stream ...

Posted by ThoughtRiot on Tue, 28 Apr 2020 01:49:17 +0200

Android Studio teaches you 3 steps to use tesseract

Resource Links: Tesseract has two important github connections: https://github.com/rmtheis/tess-two https://github.com/tesseract-ocr/tessdata tesseract uses: 1. Add a dependency compile'com.rmtheis:tess-two:8.0.0'(this should be familiar with) 2. Download the corresponding font library from the link to the second tessdata above, crea ...

Posted by tbobker on Mon, 27 Apr 2020 18:31:31 +0200

How to use Github hook for automatic deployment

Recently, I bought domain name and server by chance. It's not really a waste. In addition, I haven't owned my own personal website, so I plan to play on the server with hexo, so I don't have to worry about whether to use Github pages or Gitee pages. Of course, today's topic is not blog building, but how to use Github's hook to deploy blog code ...

Posted by CodeMama on Sun, 26 Apr 2020 04:50:10 +0200

Getting Started with Golang Web: How to Implement a High Performance Route

abstract stay Last article In, we talked about how to implement an Http server in Golang.But in the end, we can find that although DefaultServeMux can do routing distribution, its function is also imperfect. Routing distribution by DefaultServeMux is not a RESTful style API, and we cannot define the method required for requests or add query p ...

Posted by gplaurin on Mon, 20 Apr 2020 03:33:23 +0200

Go language Gin Web Framework

Gin Web Framework brief introduction web framework developed based on httprouter: https://github.com/gin-gonic/gin Provides Martini style API, but 40 times faster than Martini Very lightweight, simple to use Installation and use of Gin framework Install: go get -u github.com/gin-gonic/gin Basic use import "github.com/gin-gonic/gin" func ...

Posted by ericwright17 on Sun, 19 Apr 2020 16:23:46 +0200