Ethereum Chinese document translation - Smart contract
This paper Original link
Click here to get Chinese document of Etherscan API (full version)
The layout of the whole content is better, and readers are recommended to read it.
Smart contracts
Please refer to the API related to the smart contract and the parameter description of the interface. Etherscan API conventions , not described separatel ...
Posted by psychosquirrel on Mon, 04 Nov 2019 17:25:45 +0100
Spring cloud: service gateway zuul API gateway
What is an API gateway:
In a microservice architecture, there are usually multiple service providers. Imagine an e-commerce system, which may have multiple types of services, such as goods, orders, payments, users, etc., and the number of services of each type will also grow and change with the increase of the whole system volume. As the UI sid ...
Posted by Iceman512 on Mon, 04 Nov 2019 10:43:58 +0100
[TS evolution history -- breaking the dawn] take you to TS step by step
By Valentino GagliardiTranslator: front-end wit Source: valentinog
Last month, I spent 1300 yuan to buy Alibaba's server to learn node and its corresponding framework. Before the 11th, they had activities. The configuration of 1300 now costs only 86 yuan a year and 229 yuan for three years. I really think it's cost-effective. You can click the ...
Posted by ShawnD on Mon, 04 Nov 2019 02:08:05 +0100
Spring MVC | controller return value and exception handling
Old design
When developing an api, you need to define the data response result of the interface first. Here is a very simple and direct Controller implementation method and response result definition
@RestController
@RequestMapping("/users")
public class UserController {
@Inject
private UserService userService;
@GetRequest("/{user ...
Posted by buceta on Sun, 03 Nov 2019 02:22:34 +0100
An example of implementing ansible dynamic inventory script
1. The inventory of ansible resources is dynamic. The script specification states that you need to implement the -- list, - host option and output json data.
1. List output:
[root@master_101 ansible]# ./dy_host.py --list
{
"all": [
"192.168.8.101",
"192.168.8.102"
],
"web": {
"hosts": [
"192.168. ...
Posted by DJTim666 on Sun, 03 Nov 2019 00:56:30 +0100
Write a case of Koa + graphQL from zero
I saw the guidance of integrating GraphQL in the document of Nest.js, so I wrote a DEMO with Koa first, and then integrated with Nest.js.
Write out the database model first (this file exists before, and has not been changed. Change the file name to models.ts):
/**
* Created by w on 2018/4/13.
*/
const mongoose = require('mongoose');
mongoose ...
Posted by FloridaNutz on Sat, 02 Nov 2019 19:16:58 +0100
406 when spring MVC converts objects to JSON
Recently, I made such a 406 mistake when I followed the Taotao mall project.This is the code in the Controller
@RequestMapping("/items/{itemId}")
@ResponseBody
public TbItem getItemById(@PathVariable long itemId) {
TbItem item=itemService.findItemById(itemId);
return item;
}
This is the ...
Posted by KRAK_JOE on Fri, 01 Nov 2019 23:41:06 +0100
Processing excel form of python
xlrd
xlrd is a third-party module used to read excle tables in python. Many enterprises use tables to manage data before using computer management, so importing tables is very common!
Install xlrd
pip install xlrd
Analysis of excel structure
An excle table contains multiple sheet s
A sheet contains multiple rows and columns
E ...
Posted by lonewolf217 on Thu, 31 Oct 2019 08:34:26 +0100
Rich editor
Catalog
Usage method
Official website
Picture upload and download example
Menu bar function filter
Catalog
Usage method
Just bind events directly to the input box. Note that the introduction of js is a little different. Add more coding methods.
<script charset="utf-8" src="/editor/kindedi ...
Posted by Mykasoda on Thu, 31 Oct 2019 05:48:05 +0100
Build your own js tool library from scratch typescript+rollup+karma+mocha+coverage
Preface
With the increase of the company's product lines, there are more and more development and maintenance projects. In the process of business development, it will be found that cookie processing, array processing, throttling and anti shake functions and other tool functions are often used in many projects. In order to avoid the low operati ...
Posted by akrocks_extreme on Wed, 30 Oct 2019 05:09:25 +0100