小行星

热爱平淡,向往未知


  • 首页

  • 分类

  • 归档

  • 关于

  • 阅读排行

  • 搜索

pytorch bug

发表于 2018-11-Sun | 阅读次数:
1
2
pytorch bug
a -= a[:, 6:7, :]

vim tab space

发表于 2018-10-Sun | 阅读次数:
  1. 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"
  2. convet 6-spaces to tab

    1
    2
    3
    4
    5
    6
    7
    :set noet
    :ret!


    #!/usr/bin/env python
    def fun():
    »·····print "hello, world"
  3. reset tab to 4-space-width

    1
    2
    3
    4
    5
    :set ts=4

    #!/usr/bin/env python
    def fun():
    »···print "hello, world"
  4. convet tab to 4 spaces

    1
    2
    3
    4
    5
    6
    :set et
    :ret!

    #!/usr/bin/env python
    def fun():
    ····print "hello, world"

ag 正则查找文件

发表于 2018-10-Sun | 阅读次数:
1
ag -G '\.log$'   "\| 78\.\d+[ ]\|\n^"

nvidia-smi速度慢

发表于 2018-10-Wed | 阅读次数:
1
nvidia-smi -pm 1

regex 不含有

发表于 2018-10-Tue | 阅读次数:
1
^((?!str).)*$

ubuntu 查看文件锁

发表于 2018-10-Tue | 阅读次数:
1
lslocks

ubuntu安装node

发表于 2018-10-Tue | 阅读次数:
1
2
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

tqdm RuntimeError: cannot join current thread

发表于 2018-10-Mon | 阅读次数:
1
使用  tqdm=v4.19.

vim 关闭buffer

发表于 2018-10-Mon | 阅读次数:
1
2
:bd buffer delete
:bw buffer write

vim互换字母顺序

发表于 2018-10-Mon | 阅读次数:
1
xp
1…789…59
fangyh

fangyh

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

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