[30 swift projects in 30 days] swift 5 learning 01.CustomFont

In the 01.CustomFont project, the main learning is the installation and use of SnapKit, the automatic layout library. 1.SnapKit installation The content of Podfile is as follows: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '10.0' use_frameworks! target 'CustomFont' do pod 'SnapKit' end Locate the directory of Pod ...

Added by sanlove on Tue, 12 Nov 2019 18:39:40 +0200

Fire net HDU 1045 (bipartite matching)

Fire Net In a square of 4 × 4 at most, it is similar to the chessboard problem, but some points become "walls". If there are walls in the same row or column, the points on both sides of the wall will not be affected. Idea: for ordinary chessboard problems, you only need to make a map of each row or column as a ...

Added by copernic67 on Sun, 10 Nov 2019 19:29:48 +0200

iOS: explore transition animation of view controller

I. Introduction In iOS development, the use of transition animation is everywhere, not only our own use of UIViewblock animation to achieve a transition animation, in fact, when we realize the jump of VC controller, it is the realization of transition animation, such as the switch of label bar controller, the present ation and distribution of ...

Added by shivangp on Sat, 09 Nov 2019 13:46:08 +0200

Apk error reported for Android N and above

Apk error in Android N installation android.os.FileUriExposedException: file:///storage/emulated/0/download/1558506119385taiheApp.apk exposed beyond app through Intent.getData() Because Android 7.0 added "private directory restricted access" "Restricted access to private directory" means that in Android 7.0, in order to ...

Added by turtleman8605 on Thu, 07 Nov 2019 01:01:03 +0200

Android Studio Service service (one of the four components)

Service Characteristic How to create Code snippet implementation background network download json string Characteristic No interface, running in the background How to create Custom class inherits Service Rewrite onBind Registration (manifest file) Lifecycle oncreate() - onstartcommand - ondestore() Starting m ...

Added by MikeSnead on Sun, 03 Nov 2019 23:46:56 +0200

Eclipse build spring boot project file upload

Knowledge points: SpringBoot2.x file upload: HTML page file upload and back-end processing 1. Upload the springboot file to MultipartFile file, which is from spring MVC1) direct access to static page: localhost:8080/index.html Note: if you want to access the html page directly, you need to put the html under the folder loaded by springboot ...

Added by Zeon on Sat, 02 Nov 2019 19:16:42 +0200

Thinking problem -- the application of backward order difference

Title Description Xiaoma is a good one who loves line trees. Xiaoma's grandfather, Ma ye, was beaten by Xiaoma in the game, so he became angry and decided to give Xiaoma such a data structure problem: Given an array AA of length nn, the value of each entry at the beginning is 00. The following two operations are supported, totaling mm ...

Added by Fira on Fri, 01 Nov 2019 16:05:34 +0200

Keras basic learning I Sequential Model

keras introduction Keras is a high-level API interface for deep learning. It is implemented in python and supports tensorflow. theano is the back-end. Recently, keras has also become the official high-level API of tensorflow, so its adaptability to tensorflow is better. Keras supports the quic ...

Added by c815902 on Thu, 31 Oct 2019 10:44:26 +0200

Codeforces 293E point divide and conquer + cdq

Codeforces 293E Portal: https://codeforces.com/contest/293/problem/E Title: Give you a tree with an edge weight of 0 at the beginning, then give you n-1 operations, add edge weight to the edge every time, ask you how many pairs of paths between n-1 operations are less than or equal to l, and the edge weight is less than or equal to w Explanatio ...

Added by Azkoyen on Sat, 26 Oct 2019 21:00:02 +0300

iOS and H5 page interaction (WKWebview and UIWebview cookie settings)

Mainly record the cookie related pits 1. UIWebview 1. UIWebview is relatively simple and can be realized directly by setting cookies through NSHTTPCookieStorage. Code part ``` NSURL *cookieHost = [NSURL URLWithString:self.domain]; // Set cookie s NSHTTPCookie *cookie = [NSHTTPCookie cookieWithProperties: [NSDictionar ...

Added by DasHaas on Wed, 23 Oct 2019 22:15:01 +0300