Skip to content

Instantly share code, notes, and snippets.

View ebinmore's full-sized avatar

Eric Binmore ebinmore

  • Vox Media
  • Sudbury, ON
View GitHub Profile
@ebinmore
ebinmore / docker-compose.override.yml
Created February 1, 2021 19:29
docker-compose override to expose the port on postgres container
postgres:
ports:
- 5432:5432
@ebinmore
ebinmore / guess-my-number.rb
Last active June 27, 2016 15:03
Game we wrote during Kids Learning Code
puts "Let's play a game of number guessing from 1 to 100!"
hidden_value = rand(1..100)
max_guesses = 10
winner = false
attempt = 1
while attempt <= max_guesses && !winner do
puts "Guess #{attempt}/#{max_guesses}: What do you think the number is?"
my_guess = gets.chomp.to_i