Only for builds 3207 and 1111
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nu " 显示行号 | |
syntax on " 语法高亮 | |
filetype plugin indent on " 文件类型检测 | |
set cursorline " 光标所在行高亮 | |
set nobackup | |
set backspace=indent,eol,start " 解决插入模式下 delete 建无效问题 | |
if has('persistent_undo') | |
set undofile | |
set undodir=~/.vim/undodir | |
if !isdirectory(&undodir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tom Hale, 2016. MIT Licence. | |
# Print out 256 colours, with each number printed in its corresponding colour | |
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
set -eu # Fail on errors or undeclared variables | |
printable_colours=256 |
- HTTP 形式:
git clone https://github.com/owner/git.git
- SSH 形式:
git clone git@github.com:owner/git.git
Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<!-- | |
仓库的优先级:本地仓库 > settings 中的 profile > pom 中的 repository > mirror | |
--> | |
<localRepository>${user.home}/.m2/repository</localRepository> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
tmpdir="$(mktemp -d)" | |
texfile="$tmpdir/tmp.tex" | |
echo "\documentclass[varwidth]{standalone} | |
\usepackage{amsmath,amsfonts,amssymb,amsthm} | |
\usepackage{color} | |
\usepackage[utf8]{inputenc} | |
\begin{document} | |
" > "$texfile" |