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
The program being debugged has been started already. | |
Start it from the beginning? (y or n) y | |
Starting program: /home/yorickpeterse/.rubies/ruby-2.2.2/bin/ruby /tmp/sequel_test.rb | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/usr/lib/libthread_db.so.1". | |
[New Thread 0x7ffff7ff7700 (LWP 21397)] | |
Preparing... | |
Starting threads... | |
[New Thread 0x7ffff3a9a700 (LWP 21399)] | |
[New Thread 0x7ffff3898700 (LWP 21400)] |
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
/home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/database/transactions.rb:165: [BUG] Segmentation fault at 0x00000000000014 | |
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0020 p:0011 s:0078 e:000077 BLOCK /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/database/transactions.rb:165 | |
c:0019 p:0006 s:0076 e:000075 METHOD /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/core.rb:312 | |
c:0018 p:0013 s:0073 e:000072 METHOD /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/database/transactions.rb:165 | |
c:0017 p:0009 s:0069 e:000068 METHOD /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/database/transactions.rb:193 | |
c:0016 p:0011 s:0064 e:000063 BLOCK /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/database/transactions.rb:98 | |
c:0015 p:0008 s:0060 e:000059 BLOCK /home/yorickpeterse/.gem/ruby/2.2.2/gems/sequel-4.26.0/lib/sequel/dat |
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
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 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 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 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 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 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 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 git@github.com:YorickPeterse/oga.git | |
cd oga | |
bundle install | |
rake generate fixtures | |
ruby benchmark/xpath/evaluator/concurrent_time_bench.rb |
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
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)) |