This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "rack-cache", require: "rack/cache" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ヒラギノ角ゴ */ | |
font-family: "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif; | |
/* ヒラギノ明朝 */ | |
font-family: "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif; | |
/* From: 游明朝体・游ゴシック体のCSSでの利用 - Qiita [キータ] | |
* http://qiita.com/shinnn/items/5be7e8106189311559c1 | |
*/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helpers do | |
include Rack::Utils | |
alias_method :h, :escape_html | |
def csrf_token | |
Rack::Csrf.csrf_token(env) | |
end | |
def check_csrf | |
unless params[Rack::Csrf.csrf_field] == session['csrf.token'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EPSに出力する場合 | |
gnuplot > set terminal postscript enhanced eps (color) | |
gnuplot > set output '出力ファイル名' | |
gnuplot > (以降、プロットの操作) | |
度の扱いをラジアン⇒度数法へ | |
gnuplot> set degree angle | |
gnuplot> set logscale y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%A4で上下左右の余白を20mmにする | |
%% 高さの設定 | |
\setlength{\textheight}{\paperheight} % ひとまず紙面を本文領域に | |
\setlength{\topmargin}{-5.4truemm} % 上の余白を20mm(=1inch-5.4mm)に | |
\addtolength{\topmargin}{-\headheight} % | |
\addtolength{\topmargin}{-\headsep} % ヘッダの分だけ本文領域を移動させる | |
\addtolength{\textheight}{-40truemm} % 下の余白も20mmに | |
%% 幅の設定 | |
\setlength{\textwidth}{\paperwidth} % ひとまず紙面を本文領域に |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ロードパスにカレントディレクトリを追加 | |
$:.unshift File.dirname(__FILE__) | |
or | |
require './hoge.rb' | |
#true になる物を全て返す | |
String#scan | |
#Mechanizeでauthの警告を出さない | |
agent.add_auth(URI("http://example.com"),"username","password") |
NewerOlder