Skip to content

Instantly share code, notes, and snippets.

View sky-y's full-sized avatar

Yuki Fujiwara sky-y

View GitHub Profile
@sky-y
sky-y / list-youtube-dl.txt
Created July 24, 2014 22:55
List of sites supported by youtube-dl
$ youtube-dl --extractor-descriptions
1up.com
220.ro
3sat
4tube
56.com
5min
8tracks
9gag
AcademicEarth:Course
@sky-y
sky-y / ucs-normalize-NFC-buffer.el
Created August 5, 2012 12:14
Emacs: MacでPDFからコピーすると濁点が分離する問題を直す
;; ucs-normalize-NFC-region で濁点分離を直す
;; M-x ucs-normalize-NFC-buffer または "C-x RET u" で、
;; バッファ全体の濁点分離を直します。
;; 参考:
;; http://d.hatena.ne.jp/nakamura001/20120529/1338305696
;; http://www.sakito.com/2010/05/mac-os-x-normalization.html
(require 'ucs-normalize)
(prefer-coding-system 'utf-8-hfs)
(setq file-name-coding-system 'utf-8-hfs)
@sky-y
sky-y / image2link.lua
Last active February 23, 2020 05:39
Pandoc Lua Filter: Image to Link
@sky-y
sky-y / pandoc-tl-ja.profile
Created December 25, 2019 09:21
TeX Live: install-tl profile for Pandoc for Japanese documents (PDF output by XeLaTeX / LuaLaTeX) without doc and src
# pandoc-tl-ja
# (Original: munepi/review-tl18current.profile https://gist.github.com/munepi/cb7999cb0f4d0c8629d1593fe3117e33)
#
# $ wget http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
#
# $ sudo install-tl-YYYYMMDD/install-tl \
# --profile /some/where/review-tl18current.profile \
# --repository http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet/
#
## Install packages for XeTeX and LuaTeX in Japanese
@sky-y
sky-y / _pandoc
Created August 12, 2012 19:48
Zsh completion for pandoc
#compdef pandoc
typeset -A opt_args
local context state line
_arguments -s -S \
'(-f+ --from=+)'{-r+,--read=+}'[Specify input format.]:FORMAT:(native json markdown textile rst html docbook latex)'\
'(-r+,--read=+)'{-f+,--from=+}'[Specify input format.]:FORMAT:(native json markdown textile rst html docbook latex)'\
'(-t+ --to=+)'{-w+,--write=+}'[Specify output format.]:FORMAT:(native json plain markdown rst html html5 latex beamer context man mediawiki textile org texinfo docbook opendocument odt docx epub asciidoc slidy slideous dzslides s5 rtf)'\
'(-w+ --write=+)'{-t+,--to=+}'[Specify output format.]:FORMAT:(native json plain markdown rst html html5 latex beamer context man mediawiki textile org texinfo docbook opendocument odt docx epub asciidoc slidy slideous dzslides s5 rtf)'\
@sky-y
sky-y / command
Last active April 24, 2019 03:52
Beamer (LuaLaTeX) on Pandoc
$ pandoc pandoc-beamer.md --latex-engine=lualatex -t beamer -o pandoc-beamer.pdf
@sky-y
sky-y / gist:411b6a71e01dc2a8aaf0b0806333b0cd
Created February 1, 2019 00:28
Markdownのサンプル Kibela
## Y: やってみたこと(何を実施したのか、具体的経験)
Markdownについて学んだ。
Markdownについて学んだ。
Markdownについて学んだ。
## W: 何がわかったか・わからなかったか(気づきの深掘り、内省&教訓)
## T: 次にやること(やってみたいこと、新しい状況への応用)
@sky-y
sky-y / my-open-emacs-at-point.el
Created August 5, 2012 08:58
Emacs: Open the file which filename is pointed in an other window or dired
;; Open the file name being pointed in an other window or dired
;; reference: http://kouzuka.blogspot.com/2011/02/emacsurlfinder.html
(defun my-directory-or-file-p (path)
"return t if path is a directory,
return nil if path is a file"
(car (file-attributes path)))
(defun my-open-emacs-at-point ()
"open the file with opening emacs"
(interactive)
@sky-y
sky-y / Gemfile.lock
Last active December 6, 2018 07:07
ReVIEW-Template: Re:VIEW 2.4 + TeX Live 2018 on macOS Movajeにおけるエラー
GEM
remote: https://rubygems.org/
specs:
image_size (2.0.0)
review (2.4.0)
image_size
rouge
rubyzip
review-peg (0.2.2)
rouge (3.3.0)
@sky-y
sky-y / table.md
Created November 22, 2018 11:42
Markdown 表記法の例
左寄せ 中央寄せ 右寄せ
ひだり まんなか みぎ