replace $your_home_path as your home path like /home/renluyao
it will create two folders under $your_home_path: /test and /nginx.
install flask using pip
pip install flask
# 查看磁盘情况 | |
df -h | |
# 查看当前目录中文件夹大小 | |
du -ah --max-depth=1 | |
# 杀死名称中带有$name的进程 | |
ps aux | grep $name | awk '{print $2}' | xargs kill -9 | |
# 文件名批量替换,-n可以删前检查 |
replace $your_home_path as your home path like /home/renluyao
it will create two folders under $your_home_path: /test and /nginx.
install flask using pip
pip install flask
----------- merge rly to master ------ | |
git stash | |
git checkout master | |
git pull | |
git checkout rly | |
git diff | |
git merge master | |
git add -A | |
git commit -m “some words” | |
git push origin rly |
filetype indent on | |
filetype plugin indent on | |
set completeopt=longest,menu | |
set nu | |
syntax enable | |
syntax on | |
color koehler | |
set nowrap | |
set guioptions+=b | |
set autoindent |
#-*-coding:utf-8-*- | |
from selenium import webdriver | |
import re | |
import csv | |
# Support for Chinese | |
import sys | |
import codecs | |
reload(sys) | |
sys.setdefaultencoding('utf-8') |
// by block | |
#include "stdio.h" | |
#include "stdlib.h" | |
#include "cuda.h" | |
#include "cuda_runtime.h" | |
#define W 16 | |
#define NN 1024 | |
int matrixMul_cpu(float *M, float *N, float *P) |
#include <bits/stdc++.h> | |
/* -------------------------------------------------------------------------- */ | |
// The interval in segment tree. | |
// The interval [L, R] contains the points whose index is between L and R. | |
struct Interval { | |
int left_index, right_index; | |
}; |