python Tripartite Library requests - Quick Start

Based on 2.21.0 Send request Send GET requests: r = requests.get('https://api.github.com/events') Send POST request: r = requests.post('https://httpbin.org/post', data={'key':'value'}) Other request interfaces are identical to HTTP request types, such as PUT, DELETE, HEAD, OPTIONS, etc. Using parameters in URL query strings Pass a dictionary ob ...

Added by Herk on Thu, 16 May 2019 18:33:00 +0300

Basic Concept Interpretation of OkHttp

Recently, in sorting out Android commonly used third-party framework related things, said that Android framework, nothing more than Android development in the common network, image caching, data interaction, optimization, page framework, among which the network as a basic part, I believe that you are more using OkHttp, and in t ...

Added by PHPcadet on Thu, 16 May 2019 18:27:16 +0300

Interfaces, abstract classes and implementation classes

Interfaces, abstract classes and implementation classes 1. Interface is the most abstract layer, without any implementation; abstract layer can implement part of the interface method, but also can customize the method; implementation class must implement all methods.2. Interfaces can be implemented by classes (abstract classe ...

Added by MadnessRed on Thu, 16 May 2019 15:19:31 +0300

Native JS for Slide Wheel Map

Effect Implementation Principle Purely using html+css+JSDiscovery is relatively simple and does not require additional plug-ins or librariesThe core is to group the pictures into a sequence of rows, moving left and right, and overflow:hidden of the parent element to determine which pictures to display.Simply draw: Build basic interface <div ...

Added by Aptana on Wed, 15 May 2019 22:53:16 +0300

Fake, fake, data-fake read Compound 4 once

It was a pleasant Saturday afternoon, and after adding hours of free work to the company, I suddenly wanted to see a movie, but as a junior engineer, how can I make as much money as those senior engineer s to go to the cinema and spend it?(Officer COS: Movies are reluctant to see. It's so grand, so special!) First let's learn th ...

Added by driverdave on Wed, 15 May 2019 13:14:21 +0300

180626-Spring Design a Simple Access Counter with Redis

Links to articles: https://liuyueyi.github.io/hexblog/2018/06/26/180626-Spring Designs a Simple Access Counter with Redis/ Spring Design a Simple Access Counter with Redis Why do you want to make an access count? Previous personal blogs used divination operators to do site visits counting, which is good, but the response is very slow, followed ...

Added by Axcelcius on Wed, 15 May 2019 07:21:53 +0300

Implementing Picture Preview Component Based on Element UI

This is a simple click preview componentBy the way, record scope pits in vue stepped on during component writing~ Start with registering global components! Project catalogue: Imitate elementUI directory structure, directory name is component name, SRC is component source file (or js service file), there is also an index.js in the file director ...

Added by reddevil on Wed, 15 May 2019 05:40:54 +0300

h5 Game: WEB2048 for Different Size Screens

I. Interface Display and Brief Introduction First completed and then different sizes of screen effects, the interface imitation of the original 2048: (768px < screen) (500px < screen < 768px) (Ultra-small screen less than 500 px) It was expected that the list of games would be on the left and the list on the ...

Added by PurpleMonkey on Wed, 15 May 2019 03:06:21 +0300

Realization Principle of Water Wave Chart

In the project, I used Canvas to realize the water wave chart, and here I will share with you the principle of its implementation. When you first see waves, you may not know where to start. Let's take a look at the characteristics of waves. That's right. Someone will surely think of it as a sine-cosine curve. For small ...

Added by jbloom on Tue, 14 May 2019 23:56:34 +0300

Go Implements Mass Log Collection System (3)

I've reorganized the box for this log collection system, as shown below The overall logic of the code to be implemented this time is: The full code address is: https://github.com/pythonsite/logagent Introduction to etcd Highly available distributed key-value storage for configuring sharing and service discovery Similar projects: zookee ...

Added by laflair13 on Tue, 14 May 2019 23:30:40 +0300