1 | pytorch bug |
vim tab space
发表于 | 阅读次数:
Your current setting(tab == 6-spaces-width && expand tab)
1
2
3
4
5:set ts=6 et
#!/usr/bin/env python
def fun():
······print "hello, world"convet 6-spaces to tab
1
2
3
4
5
6
7:set noet
:ret!
#!/usr/bin/env python
def fun():
»·····print "hello, world"reset tab to 4-space-width
1
2
3
4
5:set ts=4
#!/usr/bin/env python
def fun():
»···print "hello, world"convet tab to 4 spaces
1
2
3
4
5
6:set et
:ret!
#!/usr/bin/env python
def fun():
····print "hello, world"
ag 正则查找文件
发表于 | 阅读次数:
1 | ag -G '\.log$' "\| 78\.\d+[ ]\|\n^" |
nvidia-smi速度慢
发表于 | 阅读次数:
1 | nvidia-smi -pm 1 |
regex 不含有
发表于 | 阅读次数:
1 | ^((?!str).)*$ |
ubuntu 查看文件锁
发表于 | 阅读次数:
1 | lslocks |
ubuntu安装node
发表于 | 阅读次数:
1 | curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - |
tqdm RuntimeError: cannot join current thread
发表于 | 阅读次数:
1 | 使用 tqdm=v4.19. |
vim 关闭buffer
发表于 | 阅读次数:
1 | :bd buffer delete |
vim互换字母顺序
发表于 | 阅读次数:
1 | xp |