小行星

热爱平淡,向往未知


  • 首页

  • 分类

  • 归档

  • 关于

  • 阅读排行

  • 搜索

pip全局安装

发表于 2018-08-Thu | 阅读次数:
1
sudo -H pip install autopep8

vim

发表于 2018-08-Thu | 阅读次数:

Ctrl+u和Ctrl+d是上下翻半页

vim可视化模式

发表于 2018-08-Wed | 阅读次数:

选择:
选中{}中间的内容,不包括{}
va{ 选中{}中间内容,包括{}
选中()中间内容
vi< 选中<>中间内容
vi[ 选中[]中间内容
vit 选中中间的内容
vi” 选中””中间内容
vi’ 选中”中间的内容、
vis 选中一个句子
vib 选中一个block
viw 选中一个单词
vip 选中一个段落

vim榜单

发表于 2018-08-Wed | 阅读次数:

https://vimawesome.com/

vim各种map

发表于 2018-08-Wed | 阅读次数:

inoremap就只在插入(insert)模式下生效
vnoremap只在visual模式下生效
nnoremap就在normal模式下(狂按esc后的模式)生效

pip必备包

发表于 2018-08-Wed | 阅读次数:
1
2
3
pip install six
pip install --upgrade setuptools
pip install packaging

latex字体设置

发表于 2018-08-Wed | 阅读次数:

1. 找到字体默认配置

/usr/local/texlive/2014/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-mac.def

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%%
%% This is file `ctex-fontset-mac.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ctex.dtx (with options: `fontset,mac')
%%
%% Copyright (C) 2003--2017
%% CTEX.ORG and any individual authors listed in the documentation.
%% ------------------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%% http://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainers of this work are Leo Liu, Qing Lee and Liam Huang.
%%
%% ------------------------------------------------------------------------------
%%
\GetIdInfo$Id: ctex.dtx c498d8c 2017-04-01 21:33:50 +0800 Qing Lee <sobenlee@gmail.com> $
{Mac OS X fonts definition (CTEX)}
\ProvidesExplFile{ctex-fontset-mac.def}
{\ExplFileDate}{2.4.9}{\ExplFileDescription}
\sys_if_engine_pdftex:TF
{ \ctex_fontset_error:n { mac } }
{
\sys_if_engine_uptex:TF
{ \ctex_fontset_error:n { mac } }
{
\setCJKmainfont [ BoldFont = STHeiti , ItalicFont = STKaiti ] { STSong }
\setCJKsansfont [ BoldFont = STHeiti ] { STXihei }
\setCJKmonofont { STFangsong }
\setCJKfamilyfont { zhsong } { STSong }
\setCJKfamilyfont { zhhei } { STHeiti }
\setCJKfamilyfont { zhfs } { STFangsong }
\setCJKfamilyfont { zhkai } { STKaiti }
}
}
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } }
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } }
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } }
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } }
%%
%%
%% End of file `ctex-fontset-mac.def'.

2.下载对应字体

http://fontzone.net/

##

matplotlib学习

发表于 2018-08-Sun | 阅读次数:
1
2
3
plt.figure()
plt.plot(x, y)
plt.show()

plt.subplot(2,2,3)可以简写成plt.subplot(223)

json dump不支持numpy

发表于 2018-08-Sun | 阅读次数:

只支持list

matlab速成

发表于 2018-08-Sun | 阅读次数:

因为有个数据处理用到了matlab, 所以看一看

1
2
3
4
5
a = [1,2,3]
a(1)
a(2)
a(3)
a(2 : 3)

1…171819…59
fangyh

fangyh

最爱的是那苍穹之外的浩渺宇宙

588 日志
4 分类
66 标签
© 2020 fangyh
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.3
|本站总访问量次