// Javascript version
var getRandomNum = function( i, decLen ){
return (Math.random() * (i||1) ).toFixed(decLen);
};
# My Coffee-script version
getRandomNum = ( i=1, decLen ) -> (Math.random()*i).toFixed(decLen)
# js2coffee.org Coffee-script verison
getRandomNum = (i, decLen) ->
(Math.random() * (i or 1)).toFixed decLen
Awesome huh?
Check out a demo of Coffeescript here.
I’ll like to leave you with a HTML5 Coffee-script presentation.
What REALLY is Data Science? Told by a Data Scientist - By Joma Tech
Writing perfect code is a challenging process. That's where code reviews come in to help…
"The Next Leap: How A.I. will change the 3D industry - Andrew Price - Blender"
"Captain Disillusion: World's Greatest Blenderer - Live at the Blender Conference 2018 - CaptainDisillusion"
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency) - By tutoriaLinux > What's…