Skip to content

Instantly share code, notes, and snippets.

lines = File.open('6.txt').read()
groups = lines.split("\n\n")
counts = groups.map do |g|
(g.chars.uniq - ["\n"]).count
end
p counts.sum
require 'net/http'
require 'digest'
BASE_URL = 'http://127.0.0.1:8888'
# retry up to 2 times for a total of 3 requests
def badsec_request(uri, request)
Net::HTTP.start(uri.hostname, uri.port) do |http|
http.max_retries = 2
http.request(request)

Keybase proof

I hereby claim:

  • I am austin-martinez on github.
  • I am austinmartinez (https://keybase.io/austinmartinez) on keybase.
  • I have a public key whose fingerprint is BD6A C2B7 C6F8 BB5A 0A92 7235 0219 6D25 349D 9AE0

To claim this, I am signing this object: