THE SHORT STORY
You can have the following pages in two steps. (cats can blink.)
Step one: manage your blog backstage and set the blog skin to darkgreentrip.
Step 2: Paste the following code into “Page Custom CSS Code” and “Header Html Code” respectively.Don’t pick it up“Disable template default CSS)
/*-----------------------------Page customization CSS codeBody{Background: transparent;}#main{BACKground-color: RGB (236, 239, 241);}#blogTitle {Height: 270px;Background-color: blaCK;Color:white;}#blogTitle h1{Text-align: center;Margin-left: 0;Font-siZe: 2.5em;...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script>
window.onload = function() {
var oldColor;
var tblEle = document.getElementById("tbl");
var len = tblEle.tBodies[0].rows.length;
for(var i = 0;i<len;i++) {
if(i%2==0) {
tblEle.tBodies[0].rows[i].style.backgroundColor = "pink";
//Adding mouse passesTblEle.tBodies[0].rows[i].onmouseover = function () {Old...
Download kibana
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.3.2-linux-x86_64.tar.gz
tar -zxvf kibana-6.3.2-linux-x86_64.tar.gz
Modify configuration file
vim config/kibana.yml
# Release the annotation and change the default configuration to the following:Server.port:5601
server.host: "0.0.0.0"
elasticsearch.url: "http://192.168.202.128:9200"
kibana.index: ".kibana"
start-up
bin/kibana
Effect
Function, simply speaking, is a code block with a name.
In the first reading, we introduced main, which is a function.
Little is known about the basic components of functions:
Return value type, function name, function parameter list, function body
When we call a function, we call it by calling the operator ().
// valfactorial
int fact(int val)
{
int ret = 1; // Local variables are used to save computation results.
while(val > 1)
ret *= val--; // Assign the product of RET and val to RET, then Val minus 1.
return ret; // Return to the result
}
int mai...
> easy to think of its own value minus the subscript.
Bubble sort
if(!is_array($arr)) return false;
$len = count($arr);
if($len <= 1) return $arr;
for($k = 0; $k < $len; $k++){
for($j = $len-1; $j > $k; $j--){
if($arr[$j] < $arr[$j-1]){
$temp = $arr[$j];
$arr[$j] = $arr[$j-1];
$arr[$j-1] = $temp;
}
// var_dump($arr);
}
}
Fast sorting
/**
* @param Fast sorting*/
function quick_sort($arr)
{
if(!is_array($arr)) return false;
$length = count($arr);
i...
nginx magic” in reverse proxy
When configuring the nginx reverse proxy, the slash in location and proxy_pass causes all sorts of problems. Sometimes one more slash or one less slash causes completely different results, so specially after location and proxy_passIn the case of no diagonal line, the arrangement and combination are made, and a complete test is carried out to find out the principle, so as to improve the posture level.
> test method.
Configure different rules in nginx A, then request nginx A:http://192.168.1.48/foo/api
Observe the request received by nginx B. The specific o...