The fourth harvest and thinking of reading AFNetworking source code
Because the main method of get request in this version is here:
AFHTTPOperation *operation = [AFHTTPOperation operationWithRequest:request callback:callback];
Next, we will add breakpoints to analyze the class of AFHTTPOperation:
AFHTTPOperation inherits from qhttpoperation, qhttpoperation inherits from QRunLoopOperation, and QRunLoopOpera ...
Added by rich1983 on Mon, 04 Nov 2019 16:26:56 +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
Development of cloud note applet based on blockchain
Continue with the previous step
Today's mission:
Build node server
Interaction with Ethereum through web3.js
Install the node tool Ganache to build a private chain node
Using postman to test interface
Directory structure:
Build node server (server.js)
var http = require("http");
var url = require("url");
var querys ...
Added by menwn on Sun, 03 Nov 2019 07:38:47 +0200
PHP simple implementation asynchronous multi file upload and use Postman test to submit pictures
Although many of them use large platform objects to store application files, sometimes small projects can be uploaded to the server with the program in the same way as before, emphasizing that this is a small demand. The public can use Alibaba cloud OSS, Tencent COS, sanniu Barra xxxxx...
Postman use
1. After opening, select "body" ...
Added by bav on Sat, 02 Nov 2019 02:48:15 +0200
Using IK word breakers, extending IK word banks, and stopping word banks
Using IK word breakers
Integrated ik word breaker https://mp.csdn.net/postedit/93602713
Entity class PosEntity
/** Omit getter and setter*/
class PosEntity{
private Integer posId;
private String posName;
private String posAddress;
}
In entity class, posName and posAddress are both used as Chinese fields, a ...
Added by tomm098 on Thu, 31 Oct 2019 10:41:32 +0200
How to do the front end of a large factory? Baidu senior front-end engineer, take you to write the micro front-end framework
Preface
Focus on the core implementation and skip to the fourth section: execution process.
The commands in this article apply only to shell enabled systems, such as Mac, Ubuntu, and other linux distributions. It is not applicable to windows. If you want to execute the commands in the article under windows, please use git command window (GIT ne ...
Added by wiztek2000 on Thu, 31 Oct 2019 05:05:51 +0200
React native react native swiper
RN project installation react native swiper carousel Library
# Version 1.5.14
yarn add react-native-swiper
// package.json
{
"name": "RNApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
"postinstall": "n ...
Added by Jose Arce on Wed, 30 Oct 2019 22:27:11 +0200
go and websocket (golang.org/x/net/websocket)
Reference resources
https://github.com/ukai/go-websocket-sample/blob/master/websocket_echo_sample.go
https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/08.2.md
WebSocket is an important feature of HTML5. It implements remote socket based on browser. It enables full duplex ...
Added by Tezread on Wed, 30 Oct 2019 20:06:46 +0200
Performance comparison of Unity NewtonsoftJson, LitJson and SimpleJSON
Performance comparison test of Json Library in Unity
Class library size comparison:
Class library
file type
Size
NewtonsoftJson
.dll
353KB
LitJson
.dll
56KB
SimpleJSON
.cs
68KB
Analysis time comparison:Execution times: 10000 times
test method
NewtonsoftJson
LitJson
SimpleJSON
Test 1
114ms
158ms
52ms
Test 2
136ms
288ms
126ms
...
Added by angel1987 on Wed, 30 Oct 2019 19:21:30 +0200
How to use Swagger to add JWT authorization documents for. NET Core 3.0 applications
brief introduction
This tutorial is written in the thinking mode of WHAT-what-HOW Golden Circle. The Golden Circle principle emphasizes learning from WHY to WHAT to learn and HOW to learn. From fuzzy to clear learning mode. Everyone's time is very precious. Before we do something, we should first think about WHY we should do it and WHAT kind o ...
Added by Dethman on Wed, 30 Oct 2019 03:57:09 +0200