• Font bold and line feed in latex syntax block


    Font bold problem Use “\ mathbf {}” to bold the font in “{}”, as shown in the figure: Line feed problem Add “\ \” at the end of the line, as shown in the figure: y = x + 1\\adfca Latex blogging skills This work adoptsCC agreement, reprint must indicate the author and the link […]

  • Leetcode interview question 59 – II. Maximum value of queue


    Interview question 59 – II. Maximum value of queue Title Source: https://leetcode-cn.com/problems/dui-lie-de-zui-da-zhi-lcof subject Please define a queue and implement the function max_ Value gets the maximum value in the queue and requires the function max_ value、push_ Back and pop_ The average sharing time complexity of front is O (1). If the queue is empty, pop_ […]

  • Implementation of AC automata with PHP code


    If you can match strings efficiently, the specific principle will not be changed. Here is the implementation code of PHP: root = $this->createNode(); foreach ($keywords as $keyword) { $this->addKeyword($keyword); } $this->buildFailIndex(); } /** *Create node * @param string $value * @return stdClass */ private function createNode($value = “”) { $node = new stdClass(); $node->value = […]

  • Sublime changes multiple lines into a string array


    sublimeThe feature shows how the second one is knocked up. The shortcut keys used arectrl+shift+l,ctrl+j,ctrl+l,End,HomeIn the last or the first place, when adding parentheses, you can’t write the back parentheses, but write the front parentheses, so as to match the parentheses at the end (or at the beginning of the line) to the front

  • Docker installation LNMP Ubuntu 18.04 + nginx1.14 + mysql5.7 + php7.3


    Docker image preparation Pull Ubuntu 18.04 image docker pull ubuntu18.04 Start the Ubuntu container docker run -it –name=”php7.3″ –privileged=true ubuntu:18.04 /bin/bash Ubuntu replacing alicloud source Backup source mv /etc/apt/sources.list /etc/apt/sources.list.bak Replace source echo -e “deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe \n deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse \n deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe […]

  • VIM Usage Summary


    Move the cursor to EOF at the end of the file in vim The best way to go to the last line of the file is to use G. This moves the cursor to the last line of the file. The best way to go to the last column of the row is $. This […]

  • What are the new features of c# 8.0 index and range ^ 0?


    preface    stayUsing index and range in c# 8.0What does someone in this article mean by ^ 0? Curious, I tried, and an exception was thrown. According to the official document, the ^ 0 index is the same as sequence [sequence. Length], and the expression sequence [^ 0] will not throw exceptions, just like sequence […]

  • Create a high force VIM artifact


    VIM is an ancient artifact. This article mainly continuously summarizes some instructions and precautions that must be understood in the process of using VIM, and continuously shares some plug-ins that front-end workers have to install. The introduction of vim, the selection of topics, and why VIM plug-ins are used to manage plug-ins, Interested students can […]

  • The GIT bash arrow selection is invalid when the Vue cli 3 project is created


    findGit BashInstallation directory, go toetcDirectory, findbash.bashrcDocuments; Add a new line at the end of the file:alias vue=’winpty vue.cmd’ restartGit BashJust. Reference link:Solution: when creating Vue cli 3 project, GIT bash arrow selection is invalid git windows vue-cli This work adoptsCC agreementReprint must indicate the author and the link of this article Deliberate practice, increasingly refined.

  • The PowerShell command is not fully displayed


    Problem description in usepowershellHave you ever had such troubleThe command is not displayed completely, and the end becomes a little bit All evilwindwosWhat should we do? Solution Add at the end|fl flnamelyFormat-ListAbbreviation for Reference link:Use the format command to change the output view

  • Common configuration of nginx (for reference only)


    user root; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; # gzip on; # gzip_types text/plain text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml; #Load balancing # upstream mysite.com { # server localhost:8081; # server localhost:8082; # server localhost:8083; # […]

  • C language fgetc and fputc function usage detailed explanation (in the form of characters to read and write files)


    Source: http://c.biancheng.net/view/2068.html In C language, it is flexible to read and write files. It can read and write one character at a time, or a string, or even any byte of data (data block). This section describes how to read and write files in character form. When reading and writing a file in the form […]