Skip to content

Instantly share code, notes, and snippets.

Avatar

結城浩 / Hiroshi Yuki hyuki

View GitHub Profile
@hyuki
hyuki / makeapp.rb
Created Jan 31, 2019 — forked from hyuki0000/makeapp.rb
makeapp - スクリプトをMacのアプリケーションにする
View makeapp.rb
#!/usr/bin/env ruby
# cf. http://bit.ly/2raKfLZ
# makeapp - スクリプトをMacのアプリケーションにする
if ARGV.length != 2
abort("Usage: makeapp foo.rb Foo.app")
end
scriptname = ARGV[0]
appname = ARGV[1]
@hyuki
hyuki / makeopenapp.rb
Created Jan 31, 2019 — forked from hyuki0000/makeopenapp.rb
URLをオープンするだけのアプリを作るスクリプト
View makeopenapp.rb
#!/usr/bin/env ruby
# cf. http://bit.ly/2raKfLZ
# makeopenapp - URLをオープンするだけのスクリプトをMacのアプリケーションにする
if ARGV.length != 2
abort("Usage: makeopenapp URL Example.app")
end
url = ARGV[0]
appname = ARGV[1]
@hyuki
hyuki / DefaultKeyBinding.dict
Created Jun 22, 2018 — forked from yujiod/DefaultKeyBinding.dict
Macの英数入力で円記号とバックスラッシュを入れ替える(ATOKにも対応) ~/Library/KeyBindings/DefaultKeyBinding.dict
View DefaultKeyBinding.dict
{
"¥" = ("insertText:", "\\");
"~\\" = ("insertText:", "¥");
}
@hyuki
hyuki / sample.tex
Created Jun 21, 2018 — forked from hyuki0000/sample.tex
Eulerフォント出す話
View sample.tex
\documentclass[dvipdfmx]{jsbook}
\usepackage{lmodern}
\usepackage{ccfonts} % ccfonts を入れると、sin, cosだけじゃなくすべての英文がConcreteになってしまうので注意
\usepackage[euler-digits]{eulervm}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb}
\pagestyle{empty}
\begin{document}