Skip to content

Instantly share code, notes, and snippets.

View industrialsociety's full-sized avatar

deadorbit industrialsociety

View GitHub Profile
def generate_numbers
random_generator = Random.new
Array.new(100) { random_generator.rand(1..100) }
end
def read_existing_data(file_name)
# You can modify the file name by changing the 'file_name' variable
if File.exist?(file_name)
data = File.read(file_name).split("\n")
run_count = data[0].split.last.to_i
0290 68 65 61 64 3e 0a 09 3c 62 6f 64 79 3e 0a 0a 09 head>..<body>...
02a0 3c 64 69 76 20 63 6c 61 73 73 3d 22 68 65 61 64 <div class="head
02b0 65 72 22 3e 0a 09 09 3c 64 69 76 20 63 6c 61 73 er">...<div clas
02c0 73 3d 22 63 6f 6e 74 61 69 6e 65 72 22 3e 0a 09 s="container">..
02d0 09 3c 68 31 3e 4e 65 76 65 72 53 53 4c 3c 2f 68 .<h1>NeverSSL</h
02e0 31 3e 0a 09 09 3c 2f 64 69 76 3e 0a 09 3c 2f 64 1>...</div>..</d
02f0 69 76 3e 0a 09 0a 09 3c 64 69 76 20 63 6c 61 73 iv>....<div clas
0300 73 3d 22 63 6f 6e 74 65 6e 74 22 3e 0a 09 3c 64 s="content">..<d
0310 69 76 20 63 6c 61 73 73 3d 22 63 6f 6e 74 61 69 iv class="contai
0320 6e 65 72 22 3e 0a 0a 09 3c 68 32 3e 57 68 61 74 ner">...<h2>What