Skip to content

Instantly share code, notes, and snippets.

View m-mujica's full-sized avatar

Manuel Mujica m-mujica

View GitHub Profile
@m-mujica
m-mujica / who-imported.html
Created October 12, 2015 13:58 — forked from matthewp/who-imported.html
Who imported me?
<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;
});
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