- npm install xxx --save
说明: 上述命令在下载安装package的同时还会 在package.json文件的dependencies字段添加该package的名称和版本号
- npm install xxx --save-dev
仅在开发过程中使用, 上线则不存在这个pkg
if __name__ == '__main__' | |
判断是否是在直接运行该.py文件 | |
__name__ 算是个全局变量, 如果为直接运行 python SELF.py 则判断为1 | |
//--- delay---// |
/* | |
* INPUT: 100 \n | |
* TIPS: 输入必须有序, 否则pos无意义 | |
* 1 10 11 11 12 12 13 15 16 18 2 2 20 20 20 20 21 21 21 22 22 22 23 23 23 23 24 24 24 24 24 27 27 28 32 35 4 40 40 40 41 42 44 44 46 47 47 5 5 52 53 54 57 58 6 60 61 62 62 63 63 64 65 65 65 69 7 70 70 71 71 72 75 75 76 77 8 8 82 84 84 85 86 86 87 89 9 9 91 91 93 93 95 95 96 97 97 98 98 99 | |
* Search X \n | |
* OUTPUT: position of X | |
*/ | |
#include <cstdio> | |
#include <algorithm> | |
using namespace std; |
说明: 上述命令在下载安装package的同时还会 在package.json文件的dependencies字段添加该package的名称和版本号
仅在开发过程中使用, 上线则不存在这个pkg
<?php | |
print <<<EOT | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> |
# Link: https://unix.stackexchange.com/questions/77007/mv-cannot-stat-no-such-file-or-directory-in-shell-script | |
# Failed | |
mv /path/to/FILE /new/path/to/FILE | |
# Double Quote the directory | |
mv "/path/to/"FILE "/new/path/to/"FILE |
ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 'PASSWORD'; |
There are actually two place where where mac os x serves website by default:
/Library/WebServer/Documents --> http://localhost
~/Sites --> http://localhost/~user/
Identifier refers to name given to entities such as
variables
, functions
, structures
etc.
In the C, C++, and D programming languages, a type qualifier is a keyword
that is applied to a type, resulting in a qualified type.
For example, const int
is a qualified type representing a constant integer, while int is the corresponding unqualified type
, simply an integer.
In D these are known as type constructors
, by analogy with constructors in object-oriented programming.
INSERT into user (`mail`, `name`, `pwd`) values | |
('test1@gmail.com', 'test1', 'pwd1'), | |
('test2@gmail.com', 'test2', 'pwd2'), | |
('test3@gmail.com', 'test3', 'pwd3'); |
CREATE DATABASE dbx; | |
SET NAMES "utf8"; | |
USE dbx; | |
CREATE table user ( | |
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, | |
mail VARCHAR(40) NOT NULL, | |
name VARCHAR(40) NOT NULL, | |
pwd VARCHAR(40) NOT NULL |