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
require 'sequel' | |
require 'securerandom' | |
db_host = 'localhost' | |
db_name = 'test' | |
db_user = 'root' | |
db_options = {test: true, max_connections: 10, encoding: 'UTF-8'} | |
if defined?(JRuby) |
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
Preparing... | |
Starting threads... | |
/home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/database/transactions.rb:165: [BUG] Segmentation fault at 0x00000000000000 | |
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0013 p:0011 s:0051 e:000050 BLOCK /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/database/transactions.rb:165 | |
c:0012 p:0006 s:0049 e:000048 METHOD /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/core.rb:312 | |
c:0011 p:0013 s:0046 e:000045 METHOD /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/database/transactions.rb:165 | |
c:0010 p:0009 s:0042 e:000041 METHOD /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/database/transactions.rb:193 |
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
require 'benchmark/ips' | |
NUMBERS = [10, 20, 30] | |
def iterate_with_return | |
NUMBERS.each do |number| | |
return number if number == 20 | |
end | |
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
section#header | |
header.container | |
div.row | |
div.col-xs-7 | |
= link_to image_tag("logo_subnavi.png"), root_path | |
div.col-xs-5 | |
div.text-right | |
a href="#" class="button-burger" id="nav-toggle" data-toggle="collapse" data-target="#menu" | |
= icon('reorder') |
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
# This file is automatically generated by ruby-ll. Manually changing this file | |
# is not recommended as any changes will be lost the next time this parser is | |
# re-generated. | |
require 'll/setup' | |
require 'ast' | |
class MathParser < LL::Driver | |
CONFIG = LL::DriverConfig.new | |
CONFIG.terminals = [ |
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
type Token = [string, string]; | |
type Tokens = Array<Token>; | |
type NodeChildren = Array<any>; | |
class AstNode { | |
public node_type: string; | |
public children: NodeChildren; | |
constructor(node_type: string, children: NodeChildren) { |
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
git clone [email protected]:YorickPeterse/oga.git | |
cd oga | |
bundle install | |
rake generate fixtures | |
ruby benchmark/xpath/evaluator/concurrent_time_bench.rb |
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
def on_call_lang(input, arg, &block) | |
lang_var = unique_literal('lang') | |
node = unique_literal('node') | |
found = unique_literal('found') | |
xml_lang = unique_literal('xml_lang') | |
matched = unique_literal('matched') | |
conversion = literal(Conversion) | |
ast = lang_var.assign(try_match_first_node(arg, input)) |
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
def on_call_id(input, arg) | |
orig_input = original_input_literal | |
node = node_literal | |
ids_var = unique_literal('ids') | |
matched = unique_literal('id_matched') | |
id_str_var = unique_literal('id_string') | |
attr_var = unique_literal('attr') | |
matched_assign = matched.assign(literal(XML::NodeSet).new) |
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
Jul 31 14:36:47 [11334] <Warn> Object::copy_object: invalid ivars_ reference for da0381d640a7fea68cab4c88c6d0cbb8 | |
Jul 31 14:36:47 [11334] <Warn> Object::copy_object: invalid ivars_ reference for da0381d640a7fea68cab4c88c6d0cbb8 | |
Jul 31 14:36:47 [11334] <Warn> Object::copy_object: invalid ivars_ reference for {"id":7706,"reviewer_origin":"ceec4312394b8b53fa0de01bae6d7f0f","travel_type":null,"travel_composition":null} | |
Jul 31 14:36:47 [11334] <Warn> Object::copy_object: invalid ivars_ reference for {"id":7706,"reviewer_origin":"ceec4312394b8b53fa0de01bae6d7f0f","travel_type":null,"travel_composition":null} | |
Jul 31 14:36:47 [11334] <Warn> Object::copy_object: invalid ivars_ reference for {"id":7706,"reviewer_origin":"ceec4312394b8b53fa0de01bae6d7f0f","travel_type":null,"travel_composition":null} | |
Jul 31 14:36:47 [11334] <Warn> Object::copy_object: invalid ivars_ reference for {"id":7706,"reviewer_origin":"ceec4312394b8b53fa0de01bae6d7f0f","travel_type":null,"travel_composition":null} | |
Jul 31 14:36:47 [11334] <Warn> O |