An example of lottery game of dice points made by PHP
An example of the lottery game is made by PHP. The result of the lottery is achieved by throwing the dice points, which adds some interest to the lottery.
We will write down the following html structure code in the html page,. wrap is used to place the color and prompt information, and "print" is used to place the prize.
1 <div ...
Posted by vzwhaley on Sun, 17 Nov 2019 23:45:04 +0100
6. User email sent by nodemailer system - API nodejs + Express + MySQL practice at the back end of Blog
NodeMailerNodemailer, a mail sending component of Nodejshttp://blog.fens.me/nodejs-em...Node.js uses NodeMailer to send mailhttp://www.jianshu.com/p/ee20...https://github.com/nodemailer...https://nodemailer.com/about/
In our daily development, we sometimes encounter the need for the system to push e-mail to relevant users (for example: send ac ...
Posted by djwiltsh on Sun, 17 Nov 2019 19:45:08 +0100
Date days difference calculation (Python)
describe
Read two time data (data format for example: 2019.01.01, data type is string) from the json file, and calculate the result, and print out the number of days between the two times.
I / O description
Input description
The JSON file name is datetime.json. The format is as follows:
{
"day1": "1949.10.01",
"day2 ...
Posted by alsaffar on Sun, 17 Nov 2019 15:38:06 +0100
Dashboard of microservice fuse current limiting Hystrix
brief introduction
Hystrix Dashboard is a real-time monitoring tool for hystrix. Through the Hystrix Dashboard, you can directly see the request response time, request success rate and other data of each Hystrix Command.
Quick start
Engineering description
project name
port
Effect
eureka-server
8761
Registry Center
service-hi
8762
Servic ...
Posted by kickoff3pm on Sat, 16 Nov 2019 19:32:09 +0100
python base (30): other methods of sticking, socket s
1. Sticky
1.1 sticking phenomenon
Let's start by making a program that executes commands remotely based on tcp (commands ls-l; l l l l l; pwd)
When multiple commands are executed at the same time, it is likely that only part of the result will be obtained, and when other commands are executed, another part of the result will be received, which ...
Posted by justice1 on Sat, 16 Nov 2019 10:44:02 +0100
Extracting json data using jmespath third-party module
In the work, it is often necessary to find the value of a key in json. If the json level is too deep, it is troublesome to use the dictionary's own get method.
Here is a demonstration of the third-party module jmespath extracting json keys and values.
pip install jmespath
I. Basic operation
Query the value corresponding to ...
Posted by jhbalaji on Thu, 14 Nov 2019 19:05:07 +0100
Better named tuple than tuple in Python
First, thinking
1. What is tuple?
Immutable sequence type
List that cannot be modified
2. What operations does tuple support?
Tuple is a sequence type, supporting all operations of sequence type
Value by index
one_tuple = ("Excellent", 17, "male", "coding", "Never Stop Learning!")
one_tuple[-1]
Slicing operation
one_tuple = ("Excellent" ...
Posted by sandthipe on Wed, 13 Nov 2019 20:34:40 +0100
How to use RestTemplate to call API (interceptor, exception handling, message transformation) elegantly in microservice
Follow me to get the latest knowledge, classic interview questions and technical sharing
. Among them:
RestTemplate uses HttpMe ...
Posted by scription on Wed, 13 Nov 2019 04:39:08 +0100
Modify Docker container startup configuration parameters
Sometimes, we forget to add the parameter -- restart=always when creating the container. When the Docker is restarted, the container fails to start automatically,
Now what about adding this parameter? There are two methods:
1. Docker command modification
docker container update --restart=always container name
2. Directly change the configurat ...
Posted by s3rg1o on Tue, 12 Nov 2019 20:51:36 +0100
Read Hooks Numbers - swr Source
1 Introduction
Pickups are an important part of the front-end business and have evolved several times:
fetch Compatibility with $.post is good enough to replace all kinds of decimal encapsulations.
I've been using it for a long time, and it's good to find a more scalable, ssr-enabled isomorphic number scheme, such as isomorphic-fetch,axios.
...
Posted by Danaldinho on Mon, 11 Nov 2019 05:01:20 +0100