Vue custom toast component

  After two or three days of writing, I finally wrote out the toast component. I dare not say that it is the best design. I hope friends with better ideas can give me comments in the comments section. _ (:))_ Step 1: Write toast.vue, and set the style first. <template> <div v-show="showToast" class="toast" :class= ...

Posted on Fri, 17 May 2019 07:02:43 -0700 by edwin_h

Summary of common problems and solutions for Android WebView

Big man's articles, very good to reproduce for learning and query.Origin: Sand of Time: http://blog.csdn.net/t12x3456 Summary of common problem solutions for Android WebView: At present, how to cope with the frequent updates of versions, and how to display our interface flexibly, which also involves the debate about the superiority or inferior ...

Posted on Thu, 16 May 2019 18:31:15 -0700 by hakhaimo

Add custom cli commands for your AliOS Things application

In daily embedded development, we often use serial commands to bring the device into a specific state or perform a specific operation.For example, the system self-checks, simulates the operation, or enters the manual mode to point the device.There are powerful shell tools under linux, which allow users to interact with the on-chip system. In tr ...

Posted on Thu, 16 May 2019 07:17:12 -0700 by Koobazaur

rem layout for responsive development, general and detailed principle analysis and code implementation

1. Basic principles of rem layout Principle: REM can be understood as a unit of length, the value of REM is equal to the value of font-size of the web page.If the font size of a Web page is 16px by default, 1rem equals 16px and 0.5rem equals 8px. According to this principle, if the default font size of a web page changes, the size of rem unit ...

Posted on Wed, 15 May 2019 22:14:55 -0700 by tylrwb

WeChat Public Number Brushing Idea Python

Write down a mass voting on WeChat public number, mainly record ideas, specific public number has been coded. Main line of thought: 1. Analyze the data needed to vote (to determine if voting is over ip or if an account needs to be registered) 2. Register accounts for third-party platforms in bulk (if you have a large number ...

Posted on Wed, 15 May 2019 12:35:33 -0700 by mjgdunne

The first Android application - Simple Short Message Query Balance and Traffic APP (1)

Recently, I began to contact with the development of Android applications. I watched several videos of NetEasy Cloud Classroom, looked at the development documents, and found that it is useless to read light only. I need practice to know the truth. So I decided on my own needs and began to write Android applications slowly. 1. ...

Posted on Wed, 15 May 2019 03:38:03 -0700 by mady

How to grant third-party authorization to github (with nodeJs demo)

The requirement comes from a product problem that I used to have when I was doing my personal microblog. It is impossible for users to sign up for such trouble in order to comment on an article. This step can be well solved by third-party authorized login. Then we have several choices. Tencent Departments - Weixin Log ...

Posted on Wed, 15 May 2019 00:04:42 -0700 by hitman6003

Understanding and Use of Android Shared Preferences

There are five ways to store Android data: 1. Shared Preferences: Store simple configuration parameters in Map form; 2. ContentProvider: Provide private data to other applications for use; 3. File storage: stored in the form of IO stream, which can be divided into internal and external storage of mobile phone (sd car ...

Posted on Tue, 14 May 2019 23:53:36 -0700 by gibigbig

Java IO Flow Details

File objects can represent existing files or folders or nonexistent ones. What do we want to do with the content of the file? File only operates on the file. How to deal with the content of the file requires the use of io stream technology. For example, there is a text file named a.txt under the C disk. If you want to read out t ...

Posted on Tue, 14 May 2019 04:14:39 -0700 by philippo

Logistic Regression and Python Practice

logistic regression Principle: Establish regression formula for classification boundary line based on existing data, and then classify it. Objectives: Classify cases of unknown categories to understand the knowledge information contained in the data Advantages: Low computational cost, easy to implement and understand Disadvant ...

Posted on Sun, 12 May 2019 00:08:39 -0700 by Ravi Kumar