Saturday, 23 December 2017

New Show Hacker News story: latest news

Show HN: Code to wake me up after I ruined my mobile (only source of internet)
3 by franze | 2 comments on Hacker News.
Hi HN, a week ago I was watching Netflix in the bathtub and well, water damaged my mobile beyond repair while doing so. Issue: a) my mobile phone is my only alarm clock b) my only available source of internet c) early very important business appointment This is the code I wrote at 1 a.m. in the morning (without Google/Stackoverflow) on my Macbook Pro http://ift.tt/2BlPXg6... Since them I'm wondering, what would be the most elegant solution that you would come up with (without looking anything up on - or downloading anything from - the internet)! Note: yes, I forgot where the milliseconds in setTimeout goes, so I put them everywhere.

No comments:

Post a Comment