Sha256: 14f5bc3ec4a94f95827cfd9089fde3962971312aef1559826747f1fae45c808c

Contents?: true

Size: 490 Bytes

Versions: 32

Compression:

Stored size: 490 Bytes

Contents

# !/usr/bin/ruby
b = Dir.glob '*' # 0

def out(*a)
  print a.join(" ")
  puts
end

a = nil
b.each do |i|
  sum = 0.0
  b = File.open i
  b.readline rescue next
  b.readline rescue next
  lines = 0; list = b.readlines.last(1000) # if(list[0].split[2].to_f) < 5
  #		next
  #	end

  b.each do |i|
    lines += 1
    a = i.split[3..4].reverse
    #		if i.split[2].t

    c = a[0].to_f - a[1].to_f
    sum += c
  end

  if sum < 0 || false # sum/lines > 99
    next
  end; puts i
  b.close
end

Version data entries

32 entries across 31 versions & 6 rubygems

Version Path
ufos-1.0.88 ./other/experimental_code/pr.rb
aliens-1.0.88 ./other/experimental_code/pr.rb
freespeech-1.0.88 ./other/experimental_code/pr.rb
elonmusk-1.0.88 ./other/experimental_code/pr.rb
politics-1.0.88 ./other/experimental_code/pr.rb
democracy-1.0.86 ./other/experimental_code/pr.rb
politics-1.0.82 ./other/experimental_code/pr.rb
freespeech-1.0.82 ./other/experimental_code/pr.rb
elonmusk-1.0.82 ./other/experimental_code/pr.rb
ufos-1.0.82 ./other/experimental_code/pr.rb
aliens-1.0.82 ./other/experimental_code/pr.rb
politics-1.0.81 ./other/experimental_code/pr.rb
ufos-1.0.79 ./other/experimental_code/pr.rb
aliens-1.0.79 ./other/experimental_code/pr.rb
freespeech-1.0.79 ./other/experimental_code/pr.rb
elonmusk-1.0.79 ./other/experimental_code/pr.rb
elonmusk-1.0.77 ./other/experimental_code/pr.rb
ufos-1.0.77 ./other/experimental_code/pr.rb
aliens-1.0.77 ./other/experimental_code/pr.rb
freespeech-1.0.77 ./other/experimental_code/pr.rb