Public Gists by maiha

Gravatar
Sun Nov 08 02:25:10 -0800 2009
1
2
3
class Foo
  def a
  end
Gravatar
Sat Oct 31 20:32:27 -0700 2009
1
2
3
User.transaction(:serializable) do
  ...
 
Gravatar
Tue Oct 20 13:29:58 -0700 2009
1
2
3
module Inline
  include Haml::Filters::Base
 
Gravatar
Thu Aug 27 12:45:06 -0700 2009
1
2
3
require 'mechanize'
 
WWW::Mechanize::Page.class_eval do
Gravatar
Mon Aug 17 23:32:18 -0700 2009
1
2
3
フィーチャ: 入稿管理ビルダの認証権限
  シナリオアウトライン: メソッドレベルの権限
    前提 DUの入稿管理ビルダがあり
Gravatar
Thu Jul 02 11:24:27 -0700 2009
1
2
3
require 'rubygems'
 
######################################################################
Gravatar
Tue Jun 30 13:23:13 -0700 2009
1
2
3
% jruby -J-Xmx2048m =merb -i
irb(main):001:0> buf = File.read('/tmp/1GB.txt'); buf.size
Error: Your application used more memory than the safety cap of 2048m.
Gravatar
Fri Jun 26 06:53:59 -0700 2009
1
2
3
class Foo
  dsl_accessor
    foo { puts "foo" }
Gravatar
Fri Jun 26 06:52:15 -0700 2009
1
2
3
class Foo
  foo : puts "foo"
  bar :
Gravatar
Fri Jun 26 06:38:06 -0700 2009
1
2
3
%table{:width=>"100%", :cellspacing=>"1", :cellpadding=>"0", :border=>"1"}
  %tbody
    %tr{:bgcolor=>"#eeeeee"}
Gravatar
Wed Jun 24 23:48:05 -0700 2009
1
2
3
module ApplicationHelper
  def partial(file, opts = {})
    opts[:partial] = file
Gravatar
Mon Jun 01 10:15:35 -0700 2009
1
2
3
フィーチャ: spymaster の自動レベル上げ
  シナリオ: 指定タスクを実行
   前提 タスクページへ移動
Gravatar
Fri May 29 13:20:32 -0700 2009
1
2
3
  シナリオ: 営業がページを見る
    前提 未来の確定案件1が存在し
    もし "入稿情報1"を開く
Gravatar
Fri Apr 24 03:24:03 -0700 2009
1
2
3
Xinha.prototype._shortCuts = function (ev)
{
  var key = this.getKey(ev).toLowerCase();
Gravatar
Sun Apr 19 02:54:42 -0700 2009
1
2
3
namespace "binary" do
  desc "detect unknown binary chars from source codes"
  task "check" do
Gravatar
Fri Apr 03 11:12:21 -0700 2009
1
2
3
describe ConstraintSchema do
  table_fixture :constraint_schemas, <<-EOF, :name=>"name"
select * from constraint_schemas;
Gravatar
Fri Apr 03 06:38:06 -0700 2009
1
2
3
describe ConstraintSchema do
  describe "の依存関係" do
 
Gravatar
Wed Mar 25 03:59:50 -0700 2009
1
2
3
% ./configure
...
Pure is now configured for LLVM 2.2 on i686-pc-linux-gnu.
Gravatar
Fri Mar 20 01:23:13 -0700 2009
1
2
3
Processing DeliveryUnitController#create (for 192.168.1.5 at 2009-03-20 17:21:46) [POST]
  Parameters: {"itemname"=>{"contains"=>""}, "action"=>"create", "id"=>"300607680", "order"=>{"id"=>"300607680"}, "delivery_unit"=>{"end_at"=>"2009-03-21", "start_at"=>"2009-03-21", "pv"=>"1", "additional_path"=>"", "item_id"=>"100168"}, "controller"=>"delivery_unit", "search"=>"検索"}
 
Gravatar
Fri Mar 20 01:04:50 -0700 2009
1
2
3
** TERM signal received.
** Daemonized, any open files are closed. Look at log/mongrel.9615.pid and log/mongrel.9615.log for inf
o.