Super Snail

At the bottom of the well, it is destined to see only the sky at the wellhead. However, the starting point only affects the process of reaching your peak and does not determine the height you reach.

    Hexo-Theme-Snail

A succinct hexo theme.

hexo-theme-snailView Hexo-Theme-Snail Sources On Github ➾ Light theme preview Dark theme preview Star theme preview Hexo-theme-snail is a succinct hexo theme. It has two colors, light an......

Setting up Django with uWSGI and Nginx

A tutorial is aimed at the Django user who wants to set up a production web server.

This tutorial is aimed at the Django user who wants to set up a production web server. It takes you through the steps required to set up Django so that it works nicely with uWSGI and nginx. Django......

Vue Router

The official router for Vue.js.

Vue Router is the official router for Vue.js. It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze. For most Single Page Applications, it’s recommend......

Regular Expression

A special text string for describing a search pattern.

A regular expression (regex or regexp for short) is a special text string for describing a search pattern. You can think of regular expressions as wildcards on steroids. You are probably familiar w......

Errors in Vue Development

Some problems and solutions I encountered during the use of vue.

1、Problem: (TypeScript)using a.b or this.b1ERROR: property 'b' does not exist on value of typeSolution: change a or this to (a as any) or (this as any) 2、Problem: using js or jquery to modify DOM......

Update Node.js

The method to update node.js .

清除 npm 缓存npm cache clean -f 安装 n 模块,n 模块是专门用来管理 nodejs 的版本的sudo npm install -g n 查看 n 模块的版本n -V 升级到稳定版n stable 升级到指定版本n [版本号] n 模块适用于 linux 或 mac,windows 下使用 nvm 或 nodist 对 node.js 或 npm进行版本管......

Error Installing MySqlClient

Mac 在 pyenv 虚拟环境中安装 mysqlclient 出现错误解决办法。

Django 使用 mysql 时,需要安装 mysqlclient 或 pymysql ,笔者的系统是 MACOS ,用 pyenv 管理 python 版本,使用 pyenv-virtualenv 搭建 python 虚拟环境,python 版本是 python3.8,虚拟环境中安装 mysqlclient 时出现了报错,错误及解决方法如下。 Error12345678910111213......

Usage of Virtualenv

A tool to create isolated Python environments.

Virtualenv is a tool to create isolated python environments. It creates an environment that has its own installation directories, that doesn’t share libraries with other virtualenv environments (an......

Flex Box

Flex box is a new way of css layout.

Flex box 即弹性布局,是 CSS3 的一种新的布局模式。是一种当页面需要适应不同的屏幕大小以及设备类型时确保元素拥有恰当的行为的布局方式。引入弹性盒布局模型的目的是提供一种更加有效的方式来对一个容器中的子元素进行排列、对齐和分配空白空间。目前基本所有的主流浏览器都支持该属性,同时好多前端的框架也都支持该属性布局。 Flex box 由 flex container 和 flex it......

Greedy Algorithm

Greedy algorithm means that when solving a problem, it can make the most correct choice at any time.

贪心算法又称贪婪算法,是遵循某种规则,不断贪心地选取当前最优策略的算法。贪心算法的关键是贪心策略的选择,选择的贪心策略必须具备无后效性,即某个状态以前的过程不会影响以后的状态,只与当前状态有关。接下来介绍几个贪心算法的典型例子。 Question 1 Analysis这个问题的最优解法是每次选择结束最早的工作,这样参与的工作最多。 Solution1234567891011121314151......

Ants

A POJ algorithm competition topic.

Algorithms change the world. The importance of algorithms is self-evident to a programmer, so the practice of some algorithms is indispensable. Next, I will share some algorithmic problems. Questio......