I hereby claim:
- I am shadeslayer on github.
- I am shadeslayer (https://keybase.io/shadeslayer) on keybase.
- I have a public key whose fingerprint is 622B 5CDC DB1E 953F 5D32 6852 A704 BD4E F267 2094
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(process:1927): libnice-DEBUG: Created NiceStream (1 created, 0 destroyed) | |
(process:1927): libnice-DEBUG: Created NiceComponent (1 created, 0 destroyed) | |
(process:1927): libnice-DEBUG: Agent 0x1c330a0 : allocating stream id 1 (0x1c351d0) | |
(process:1927): libnice-DEBUG: Created NiceStream (2 created, 0 destroyed) | |
(process:1927): libnice-DEBUG: Created NiceComponent (2 created, 0 destroyed) | |
(process:1927): libnice-DEBUG: Agent 0x1c331b0 : allocating stream id 1 (0x1c393a0) | |
(process:1927): libnice-DEBUG: Agent 0x1c330a0 : In ICE-FULL mode, starting candidate gathering. | |
(process:1927): libnice-DEBUG: Agent 0x1c330a0 : libnice compiled without UPnP support | |
(process:1927): libnice-DEBUG: Agent 0x1c330a0: Trying to create host candidate on port 0 | |
(process:1927): libnice-DEBUG: Agent 0x1c330a0: Could not set IPV6 socket ToS: Protocol not available |
> $ NICE_DEBUG=all G_MESSAGES_DEBUG=all ./tests/test-credentials [±set_local_creds ●●] | |
(process:7400): libnice-DEBUG: Created NiceStream (1 created, 0 destroyed) | |
(process:7400): libnice-DEBUG: Created NiceComponent (1 created, 0 destroyed) | |
(process:7400): libnice-DEBUG: Agent 0x8790a0 : allocating stream id 1 (0x87b1d0) | |
(process:7400): libnice-DEBUG: Created NiceStream (2 created, 0 destroyed) | |
(process:7400): libnice-DEBUG: Created NiceComponent (2 created, 0 destroyed) | |
(process:7400): libnice-DEBUG: Agent 0x8791b0 : allocating stream id 1 (0x87f3a0) | |
(process:7400): libnice-DEBUG: Agent 0x8790a0 : In ICE-FULL mode, starting candidate gathering. | |
(process:7400): libnice-DEBUG: Agent 0x8790a0 : libnice compiled without UPnP support | |
(process:7400): libnice-DEBUG: Agent 0x8790a0: Trying to create host candidate on port 0 |
class Node | |
include Enumerable | |
attr_accessor :left, :right, :data | |
def initialize(data) | |
@data = data | |
@left = nil | |
@right = nil | |
end |
#!/usr/bin/env ruby | |
def merge_sort(array) | |
return array if array.length <= 1 | |
mid = array.size / 2 | |
left = array[0..mid] | |
right = array[mid+1..-1] | |
s_left = merge_sort(left) |
> $ NICE_DEBUG=all G_MESSAGES_DEBUG=all ./tests/test-credentials [±set_local_creds ●●] | |
(process:7449): libnice-DEBUG: Created NiceStream (1 created, 0 destroyed) | |
(process:7449): libnice-DEBUG: Created NiceComponent (1 created, 0 destroyed) | |
(process:7449): libnice-DEBUG: Agent 0xda1060 : allocating stream id 1 (0xda3400) | |
(process:7449): libnice-DEBUG: Created NiceStream (2 created, 0 destroyed) | |
(process:7449): libnice-DEBUG: Created NiceComponent (2 created, 0 destroyed) | |
(process:7449): libnice-DEBUG: Agent 0xda1170 : allocating stream id 1 (0xda72a0) | |
(process:7449): libnice-DEBUG: Agent 0xda1060 : In ICE-FULL mode, starting candidate gathering. | |
(process:7449): libnice-DEBUG: Agent 0xda1060 : libnice compiled without UPnP support | |
(process:7449): libnice-DEBUG: Agent 0xda1060: Trying to create host candidate on port 0 |
require "./node" | |
root = Node.new(3) | |
root.left = Node.new(2) | |
root.right = Node.new(1) | |
root.each { |x| puts x.data } |
Error in ./t.cr:6: instantiating 'Node#each()' | |
root.each { |x| puts x.data } | |
^~~~ | |
in ./node.cr:11: undefined method 'each' for Nil | |
left.each(&block) if left | |
^~~~ |
class Node | |
include Enumerable | |
property :left, :right, :data | |
def initialize(data) | |
@data = data | |
end | |
def each(&block) |