タグ

2017年11月15日のブックマーク (2件)

  • More pdf-tools tricks

    Following a couple of recent postings on pdf-tools, here are a few customisations I've found handy. For scanned pdfs, 'pdf-view-auto-slice-minor-mode can be useful to turn on. You might bind it to something like s a. It auto trims the borders for each page of the pdf as it encounters them. The following sets up a variety of colour-filter modes (good for night-time viewing, or anytime really that y

    More pdf-tools tricks
    Konboi
    Konboi 2017/11/15
    え? きもいw (いい意味で
  • Gitでコメントを無視して差分を見る - tmtms のメモ

    古いRubyのコードのコメントを独自のRDoc形式からYARD形式に変換して、さらにその後にプログラムを変更したんですが、その後に差分を見ると大量のコメントの差分が表示されて、実際のコードの差分が何かわからなくなったりしたので、コメントを無視して差分を取る方法を調べてみました。 普通にgit diffするとこんな感じ: diff --git a/hoge.rb b/hoge.rb index 8fa6659..0561977 100644 --- a/hoge.rb +++ b/hoge.rb @@ -1,8 +1,8 @@ -# == ほげクラス +# ほげクラス class Hoge - # === ほげ - # +str+ 何か + # ほげ + # @param str [String] 何か def hoge(str) - 123 + 456 end end プログラムとしての変

    Gitでコメントを無視して差分を見る - tmtms のメモ
    Konboi
    Konboi 2017/11/15