1
0

Remove scripts folder

This commit is contained in:
Tim Kächele 2024-08-25 09:19:44 +02:00
parent ea6020d425
commit c822323536
3 changed files with 0 additions and 33 deletions

View File

@ -1,13 +0,0 @@
require 'date'
def build(n)
shipping_options = ['S', 'M', 'L']
provider = ['MR', 'LP']
today = Date.today
n.times do |n|
today + (n / 100.to_f)
puts "#{(today + n).iso8601} #{shipping_options.sample} #{provider.sample}"
end
end
build(ARGV[0].to_i)

View File

@ -1,13 +0,0 @@
require 'date'
def build(n)
shipping_options = ['S', 'M', 'L']
provider = ['MR', 'LP']
today = Date.today
n.times do |i|
date = today + (i / 10000.to_f)
puts "#{date.iso8601} #{shipping_options.sample} #{provider.sample}"
end
end
build(ARGV[0].to_i)

View File

@ -1,7 +0,0 @@
File.open('./output.txt', 'w') do |f|
File.foreach(ARGV[0]) do |line|
f.write(line)
end
end