I hereby claim:
- I am wesvetter on github.
- I am wes (https://keybase.io/wes) on keybase.
- I have a public key whose fingerprint is D204 17DA BE3E 8F15 390E F44D DE9C EF88 EE88 7701
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
module Rake | |
class Task | |
def execute_with_timestamps(*args) | |
start = Time.now | |
execute_without_timestamps(*args) | |
execution_time_in_seconds = Time.now - start | |
printf("** %s took %.1f seconds\n", name, execution_time_in_seconds) | |
end | |
alias :execute_without_timestamps :execute |
SUPER IMPORTANT LEGAL DOCUMENT | |
------------------------------ | |
I don't give two hoots what you do with any of the design or code you find here. | |
Actually, I do. I hope you take it and use it, uncredited, on a super commercial website and get wicked rich off it. I hope you use it at work and your boss is impressed and you get a big promotion. I hope it helps you design a website and that website impresses somebody you think is super hot and you get married and have smart, chill babies. I hope you use the code in a blog post you write elsewhere and that website gets way more popular and awesome than this one. | |
If you feel like telling me about it, cool. If not, no big deal. If you feel better crediting it, that's cool. If not, don't sweat it. | |
If you copy an entire article from this site and republish it on your own site like you wrote it, that's a little uncool. I won't be mad at you for stealing, I just think you're better than that and want to see you do better. I'm not going to come after you though. I'd rat |
# Simple PubSub implementation | |
tinysub = do (lib={}) -> | |
# Storage for topics that can be broadcast or listened to. | |
topics = {} | |
# Used to generate subscriber tokens | |
subscriber_uid = -1 | |
generate_token = -> (++subscriber_uid).toString() |