• A shell command a day Linux text operation series – head, tail command detailed explanation


    Head command in Chinese: Usage: head [option]… [file] Displays the first 10 lines of each specified file to standard output. If more than one file is specified, the file name will be given as the file header before each output. If no file is specified, or the file is’ “, the data is read from […]

  • Using JS to write an automatic path finding snake


    preface Occasionally I saw a snake written two years ago. At that time, I didn’t write a good algorithm for automatic path finding. Snakes are easy to hang. I found a time to fill in the pit at the weekend and wrote a snake that can’t hang. Two years ago_ Click to view This updated […]

  • Tail of common linux commands


    tail NAME tail – output the last part of files SYNOPSIS tail [OPTION]… [FILE]… DESCRIPTION Print the last 10 lines of each FILE to standard output. With morethan one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.Mandatory arguments to long options are […]

  • Extreme value theory of R language: analysis of fire loss distribution based on GPD model


    Link to the original text:http://tecdat.cn/?p=21425  Extreme value theory focuses on the tail characteristics of risk loss distribution, and is usually used to analyze rare probability events. It can rely on a small number of sample data to get the change of extreme value in the population distribution when the population distribution is unknown, and has […]

  • [leetcode] the day of leetcode — add two numbers


    The next day. Actually, I left work very early today, but I spent the whole night learning the usage of option, some and box in rust. There was almost no time to brush the questions, so I just brush one. The topics are as follows: You are given two non-empty linked lists representing two non-negative […]

  • Why should CSS be included in the head tag?


    It was written on October 10, 2018. When I suddenly think of it, I move it to SIFE. The main purpose is to share it with the front-end who just got started problem Since the beginning of the front-end, people have been told that “CSS should be introduced into the head tag”, but there are […]

  • The tail is processed as a time series to identify whales


    By Lamothe ThibaudCompile FlinSource: to ward data science Using curvature integral and dynamic time warping, let’s study sperm whale recognition in depth! preface Recently, we tried Capgemini’s global data science challenge. I worked with ACORES whale research center to identify sperm whales and use AI to help save their lives. To accomplish this task, we […]

  • A simple Linux command tail


    The tail command starts from the specified point to write the file to the standard output. Using the – f option of the tail command, you can easily look up the changing log file. The tail – f file name will display the tail content of the file name on the screen, and not only […]

  • HTML 5 basic Tags


    Basic label learning First level label Secondary label Level 3 label Level 4 label Level 5 label Level 6 label Two tigers, two tigers, Run fast, run fast, One has no eyes, One has no tail, How strange! How strange! Two tigers, two tigers, Run fast, run fast, One has no ears, One has no […]

  • Go’s bytes.buffer Buffer


    1、 Create buffer period bytes.buffer Is a buffer byte type buffer 1. Use bytes.NewBuffer Create: if the parameter is [] byte, the buffer contains the slice; if the parameter is nil, an empty buffer is created. 2、 bytes.NewBufferString establish 3、bytes.Buffer{}  func main(){ buf1 := bytes.NewBufferString(“hello”) buf2 := bytes.NewBuffer([]byte(“hello”)) buf3 := bytes.NewBuffer([]byte{‘h’,’e’,’l’,’l’,’o’}) The above three are […]

  • Basic data types and basic application scenarios of redis


    Basic application scenarios of redis Get the winning user ID. after it pops up randomly, the set does not exist Store the winning user ID in the activity to ensure that the same user won’t win twice [set] Store the fan list, value is the user ID of the fan, score is the follow time […]

  • Implementation of LRU algorithm in Java


    Recently, I met Alibaba’s outsourcing company, but I have to knock the code online. That’s a tension. The topic is to implement a cache of LRU algorithm. Outsourcing is so demanding, eh. Fortunately, LRU is a topic assigned by my university teacher. Of course, I implemented it in C language. The principle of the algorithm […]