Last active
August 9, 2018 10:18
-
-
Save miguelff/d68ed53e561a6aaf51ea9f3215694c7b to your computer and use it in GitHub Desktop.
Just run `ruby tee.rb`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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