Skip to content

Instantly share code, notes, and snippets.

@miguelff
Last active August 9, 2018 10:18
Show Gist options
  • Save miguelff/d68ed53e561a6aaf51ea9f3215694c7b to your computer and use it in GitHub Desktop.
Save miguelff/d68ed53e561a6aaf51ea9f3215694c7b to your computer and use it in GitHub Desktop.
Just run `ruby tee.rb`
require "set"
@mantras = Set.new
trap "SIGINT" do
puts "YOU HAVEN'T FINISHED YET!"
end
def learn(&instructions)
instance_eval &instructions
@mantras.each do |mantra|
puts mantra
breath
end while true
end
def that(mantra)
@mantras << mantra
end
alias :to :that
def breath
sleep 1
end
if __FILE__ == $0
learn {
that "Smart code is not good code"
to "Keep it simple, stupid"
that "You don't always need a distributed system"
that "Principles are more important than tools"
that "Programming doesn't make anyone a better human"
to "Read the fucking manual"
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment