This file contains 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
do_audit = '{phrases.do_audit : {$eq : true}}' |
This file contains 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
# MRI | |
Rehearsal ----------------------------------------------------------- | |
symbol w/ interpolation 1.740000 0.010000 1.750000 ( 1.745346) | |
string w/ interpolation 1.350000 0.000000 1.350000 ( 1.353597) | |
symbol 0.200000 0.000000 0.200000 ( 0.207208) | |
string 0.440000 0.000000 0.440000 ( 0.439890) | |
-------------------------------------------------- total: 3.740000sec | |
user system total real |
This file contains 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
%p#notice | |
=notice | |
.current-motions | |
=link_to "New Motion", new_motion_path, {:class => "quick-tool"} | |
%h1 | |
Current Motions | |
%ul | |
-@motions.each_with_index do |motion, i| | |
%li{ :class => cycle('even', 'odd') } |
This file contains 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
sgonyea@skg:~/Sites/workspace/jruby_solr_attempt$ mirahc --java kitchen_sink.mirah --classpath /Users/sgonyea/Sites/workspace/apache-solr-1.4.1 | |
/Users/sgonyea/.rvm/gems/jruby-1.5.5/gems/mirah-0.0.4-java/lib/mirah/env.rb:27:in `decode_paths': private method `split' called for nil:NilClass (NoMethodError) | |
from /Users/sgonyea/.rvm/gems/jruby-1.5.5/gems/mirah-0.0.4-java/lib/mirah.rb:284:in `process_flags!' | |
from /Users/sgonyea/.rvm/gems/jruby-1.5.5/gems/mirah-0.0.4-java/lib/mirah.rb:181:in `parse' | |
from /Users/sgonyea/.rvm/gems/jruby-1.5.5/gems/mirah-0.0.4-java/lib/mirah.rb:165:in `generate' | |
from /Users/sgonyea/.rvm/gems/jruby-1.5.5/gems/mirah-0.0.4-java/lib/mirah.rb:158:in `each' | |
from /Users/sgonyea/.rvm/gems/jruby-1.5.5/gems/mirah-0.0.4-java/lib/mirah.rb:158:in `generate' | |
from /Users/sgonyea/.rvm/gems/jruby-1.5.5/gems/mirah-0.0.4-java/lib/mirah.rb:145:in `compile' | |
from /Users/sgonyea/.rvm/gems/jruby-1.5.5/gems/mirah-0.0.4-java/lib/mirah.rb:25:in `compile' | |
from /Users/sgonyea/.rvm/gems/jruby-1.5.5/gems/mir |
This file contains 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
class Motion < ActiveRecord::Base | |
belongs_to :member | |
has_many :events | |
validates_inclusion_of :state, :in => | |
%w(waitingsecond waitingexpedited waitingobjection | |
objected voting passed failed approved) | |
def seconds |
This file contains 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
sgonyea@skg:~/Sites/streamly_ffi$ ruby benchmark/basic_request.rb http://localhost:8080/ 1000 | |
Rehearsal ------------------------------------ | |
StreamlyFFI | |
0.410000 0.350000 0.760000 ( 14.862002) | |
Streamly | |
0.160000 0.330000 0.490000 ( 16.206925) | |
Curb | |
0.570000 0.330000 0.900000 ( 16.687001) | |
Excon | |
0.220000 0.030000 0.250000 ( 0.327825) |
This file contains 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
reduce = (mapped, arg) -> | |
opts = eval(arg) | |
return mapped unless opts["phrases"]?.length > 0 | |
return mapped unless mapped?.length > 0 | |
p_regex = {} | |
p_rplce = {} | |
fields = arg["fields"] if arg["fields"]?.length > 0 | |
cntr = 0 |
This file contains 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
/Users/sgonyea/Sites/lapreso/tmp/.maildir/dorland-c/deleted_items/20. #<Riak::FailedRequest: Expected [200, 204, 300] from Riak but received 500. <html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1>The server encountered an error while processing this request:<br><pre>{error,{error,{case_clause,{error,timeout}}, | |
[{riak_kv_wm_raw,accept_doc_body,2}, | |
{webmachine_resource,resource_call,3}, | |
{webmachine_resource,do,3}, | |
{webmachine_decision_core,resource_call,1}, | |
{webmachine_decision_core,accept_helper,0}, | |
{webmachine_decision_core,decision,1}, | |
{webmachine_decision_core,handle_request,2}, | |
{webmachine_mochiweb,loop,1}]}}</pre><P><HR><ADDRESS>mochiweb+webmachine web server</ADDRESS></body></html>> | |
/Users/sgonyea/Sites/lapreso/tmp/.maildir/forney-j/sent_items/158. #<Riak::FailedRequest: Expected [200, 204, 300] from Riak but received 500. <html><head><title>5 |
This file contains 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
sgonyea@skg:~/Sites/gsolr$ ruby bench.rb 10 http://localhost:8080/solr "hi" | |
Rehearsal ------------------------------------ | |
GSolr | |
0.120000 0.030000 0.150000 ( 1.463842) | |
RSolr | |
0.160000 0.040000 0.200000 ( 1.670438) | |
--------------------------- total: 0.350000sec | |
user system total real | |
GSolr |
This file contains 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
sgonyea@skg:~/Sites/gsolr$ ruby bench.rb http://localhost:8080/solr "hi" | |
Rehearsal ------------------------------------ | |
GSolr | |
---option | |
:HTTPGET | |
---value | |
1 | |
/Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/curl_ffi-0.0.7/lib/bindings.rb:945:in `easy_setopt_long': no implicit conversion from nil to integer (TypeError) | |
from /Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/curl_ffi-0.0.7/lib/bindings.rb:945:in `easy_setopt' | |
from /Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/curl_ffi-0.0.7/lib/curl_ffi/easy.rb:56:in `setopt' |