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
<?php | |
// Used in https://github.com/im4aLL/roolith-event | |
class Event { | |
private static $events = []; | |
public static function listen($name, $callback) { | |
self::$events[$name][] = $callback; | |
} |
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
/* | |
* Author: Khaled Mohammad | |
* Dated: 6th January, 2018 | |
* | |
* How to use: | |
* 1.Go to your github profile page: github.com/<yourusername>/ | |
* 2.Open console by pressing F12. | |
* 3.Paste the code below. | |
* 4.It will show you some juicy stats about your profile.Tadaaa! | |
* |