ソースの質に関してはお察しください
- Mac ( XQuartz が必要です。 ここからダウンロードしてください。)
clang++ reflection_reflaction.cpp -std=c++11 -I /usr/X11R6/include -L /usr/X11R6/lib -l X11
# ロードパスにカレントディレクトリを追加 | |
$:.unshift File.dirname(__FILE__) | |
or | |
require './hoge.rb' | |
#true になる物を全て返す | |
String#scan | |
#Mechanizeでauthの警告を出さない | |
agent.add_auth(URI("http://example.com"),"username","password") |
%%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} % ひとまず紙面を本文領域に |
EPSに出力する場合 | |
gnuplot > set terminal postscript enhanced eps (color) | |
gnuplot > set output '出力ファイル名' | |
gnuplot > (以降、プロットの操作) | |
度の扱いをラジアン⇒度数法へ | |
gnuplot> set degree angle | |
gnuplot> set logscale y |
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'] |
/* ヒラギノ角ゴ */ | |
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 | |
*/ | |
gem "rack-cache", require: "rack/cache" |
{ | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} |
.cf:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} |
ソースの質に関してはお察しください
clang++ reflection_reflaction.cpp -std=c++11 -I /usr/X11R6/include -L /usr/X11R6/lib -l X11
// Rounding methods implementation in C | |
// 2014 kyontan No Rights Reserved (CC0) | |
// https://creativecommons.org/publicdomain/zero/1.0/deed.ja | |
/* Supporting methods | |
- ceil (round up) | |
- floor (round down) | |
- truncate (round towards zero) | |
- round off (round half up) | |
- JIS Z8401:1999 round (round to the nearest even) |