Created
May 31, 2014 17:16
-
-
Save ncwhale/3a759baf227e72bd0dcd to your computer and use it in GitHub Desktop.
quietlynn / js01.md 芙兰的答案
This file contains 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
#作业1 | |
(C)->"#{C} 摄氏度等于 #{C*1.8+32} 华氏度。" | |
(F)->"#{F} 华氏度等于 #{(F-32)/1.8} 摄氏度。" | |
#作业2 | |
[ B, A ] = [ A, B ] | |
#作业3 | |
SEC_IN_YEAR = 60*60*24*365 + 60*60*6 + 60*9 + 10 | |
SUPERMAN_CODELINE_IN_YEAR = SEC_IN_YEAR / 17 #SuperMan without rest | |
HUMAN_CODELINE_IN_YEAR = SUPERMAN_CODELINE_IN_YEAR / 4 / 365 * 220 #Most of the time we are rest | |
LINUX_KERNEL_LINE = 15803499 #2013 KERNEL 3.1 | |
SUPERMAN_KERNEL_YEAR = LINUX_KERNEL_LINE / SUPERMAN_CODELINE_IN_YEAR #about 8 and half years | |
HUMAN_KERNEL_YEAR = LINUX_KERNEL_LINE / HUMAN_CODELINE_IN_YEAR #about 56 years |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
喂喂!你犯规啊!我们学的是JavaScript不是CoffeeScript!!!