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
module Ekispert | |
# よく考えると地域だからインスタンス化されるような使い方はないか.. | |
module Area | |
LIST = [{ :name => :japan, :yomi => "全国", :code => 111 ..}, ..] | |
# クラスメソッドのかきかたわすれた.. | |
module_function | |
def find(&block) | |
# クロージャで取捨選択 | |
end |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
#fake http://sleepyti.me/ | |
if ARGV.size == 0 | |
warn "usage: #{$0} <ex. 7:20am>" | |
exit | |
end |
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
build cxx pch-header | |
% clang -cc1 -triple x86_64-apple-darwin10 -emit-pch -disable-free -disable-llvm-verifier -main-file-name pchheader.h \ | |
-pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2 \ | |
-resource-dir /Developer/usr/bin/../lib/clang/2.0 -ferror-limit 19 -fmessage-length 171 -stack-protector 1 \ | |
-fblocks -fdiagnostics-show-option -fcolor-diagnostics -o /path/to/pchheader-nu.pch -x c++-header /path/to/pchheader.h | |
use it | |
% clang -cc1 -triple x86_64-apple-darwin10 -emit-pch -disable-free -disable-llvm-verifier -pic-level 1 -mdisable-fp-elim \ | |
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2 -resource-dir /Developer/usr/bin/../lib/clang/2.0 \ | |
-ferror-limit 19 -fmessage-length 171 -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -fsyntax-only \ |
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
#uname -a | |
#Linux hoge 2.6.36-ARCH #1 SMP PREEMPT Wed Nov 24 00:39:57 CET 2010 x86_64 Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz GenuineIntel GNU/Linux | |
C_INCLUDE_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include \ | |
C_PLUS_INCLUDE_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include \ | |
LIBRARY_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1 \ | |
./configure --program-suffix=-code-assist --enable-languages=c,c++ --disable-bootstrap \ | |
--disable-multilib --libdir=/usr/lib/gcc-code-assist --libexecdir=/usr/lib/gcc-code-assist \ | |
--datadir=/usr/share/gcc-code-assist --infodir=/usr/share/info/gcc-code-assist \ | |
--mandir=/usr/share/man/gcc-code-assist --with-gmp-include=/usr/include --with-gmp-lib=/usr/lib \ |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
#arc challengeのまがいもの | |
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
get '/' do | |
haml(:index) |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
#まーじゃんのやつ | |
#http://www.itmedia.co.jp/enterprise/articles/1004/03/news002.html | |
class Hai | |
DEBUG = false | |
def initialize(s) | |
@table = build_table(s) | |
end |
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
find . -name \*.php | xargs nkf --guess | perl -pe "s/.+://" | sort | uniq -c |
NewerOlder