The sum of two digits of a small algorithm per day
The sum of two digits of a small algorithm per day
Given an array of integers nums and a target value, you can find the two integers that sum to the target value in the array and return their array subscripts.
You can assume that each input corresponds to only one answer. However, you can't reuse the same elements in this array.
Example:
Given ...
Added by agmorgan on Tue, 08 Oct 2019 22:34:32 +0300
Instances of json and pickle module fast dumps(), loads(), dump(), load() serialization and deserialization in Python
In Python, serialization can be understood as: converting Python's object code into json string, and anti serialization can be interpreted as decoding the json format string into Python data object. In the standard library of python, json library and pickle library are provided to deal with this part ...
Added by Wave on Tue, 08 Oct 2019 16:39:13 +0300
Query performance test of mysql json data format
Environmental preparation
Database environment: mysql 5.7.20
Data preparation:
1. Test_json table, which stores 100,000 rows of data with JSON column values of 10 elements
The test_varchar_index table, which stores 1 million pieces of data, does not contain json columns, and does not index columns
Th ...
Added by clang on Tue, 08 Oct 2019 03:53:05 +0300
[SpringBoot] SpringBoot+AOP Global Print Log (with source code)
Source code
https://github.com/HelloSummer5/GlobalLogDemo
Traditional Logging Method
Not elegant enough, not beautiful enough, will cause a lot of log code redundancy
@GetMapping("list")
public Result listUser(){
log.info("======Get into Controller=====");
List<User> userList = userSer ...
Added by incubi on Mon, 07 Oct 2019 21:28:39 +0300
Wechat Domain Name Interception Detection-Mechanism and Primary Understanding Secret
background
Due to the stricter restrictions, domain names are judged to be induced sharing. Therefore, the company decided to investigate a set of stable, fast and accurate detection and query interfaces for the domain name interception.
The development group tried to search for a period of time, and found that the source code and principles w ...
Added by shellyrobson on Mon, 07 Oct 2019 10:10:59 +0300
91 Site Click Stream Data Analysis Case (Data Display)
In the enterprise data analysis system, there are many front-end display tools.
Independent deployment of specialized systems: represented by foreign products such as Business Objects(BO,Crystal Report),Heperion(Brio),Cognos, etc., their servers are deployed separately and communicate information with ...
Added by Lee on Sun, 06 Oct 2019 03:02:59 +0300
Web pack source code analysis-complier module
Web pack source code analysis (4) - complier module
In the previous article, we saw that webpack-cli transforms the parameters passed in from the command line and the configuration items in the configuration file through `yargs', and then passes them to the compiler module of webpack to compile.
Let's take a look at what compiler has done.
Entr ...
Added by elenev on Sat, 05 Oct 2019 20:34:58 +0300
Several methods of removing superfluous characters at the end of a string
title: Several methods of removing superfluous characters at the end of a string
date: 2018-08-17 22:12:58
tags: [Java, method]
---
When splicing strings, we often find many unwanted characters, which are very annoying. Here are three ways to get rid of annoyance.
//Cyclic generation of json format data
public static String CreateJson() {
...
Added by JsF on Sat, 05 Oct 2019 08:44:35 +0300
Some pits for deep copy implementation of JSON.parse(JSON.stringify(obj))
In js, how to use one line of code to achieve deep copy? It can be implemented: JSON.parse(JSON.stringify(obj)).This line of code runs by using JSON.stringify to serialize the js object (JSON string), and then using JSON.parse to deserialize (restore) the js object; the function of serialization is storage and transmission. (The object itself s ...
Added by Isomerizer on Thu, 03 Oct 2019 22:43:34 +0300
PHP+Ajax Click to Load More List Data Examples
A simple and practical PHP+Ajax Click to load more list data instances, the realization of the principle: through the "more" button to the server side to send Ajax requests, PHP according to paging parameters query the latest records, the data returned in JSON form, foreground Query parse JSON data, and add data to the list page. Actu ...
Added by AbsolutelyFreeW on Wed, 02 Oct 2019 12:07:07 +0300