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
<script src="node_modules/steal/steal.js"></script> | |
<script> | |
var oldNormalize = System.normalize; | |
System.normalize = function(name, parentName){ | |
return oldNormalize.apply(this, arguments).then(function(name){ | |
if(name === "my/module") { | |
console.log(name, "is imported by", parentName); | |
} | |
return name; | |
}); |
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
require 'date' | |
def is_valid_date? year, month, day | |
return false if year < 2000 || year > 2999 | |
Date::valid_date?(year, month, day) | |
end | |
class Date | |
def is_valid_date_for_millenium? millenium |