This file contains hidden or 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 | |
| function dbSafe($data) { | |
| if(is_array($data)) { | |
| $new = array(); | |
| foreach($data as $k => $v) { | |
| $new[$k] = $v; | |
| } | |
| } else { | |
| $new = dbSafe($data); |
This file contains hidden or 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 | |
| /** | |
| * function to calculate all dates between two dates | |
| * | |
| * @param date $first | |
| * @param date $last | |
| * @param string $step | |
| * @param string format | |
| * |
This file contains hidden or 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. Necro Push | |
| i. Lineup | |
| Offlane BH | |
| Mid BM | |
| Safe Jakiro + Sven + Wisp | |
| ii. Lineup (against non AOE heroes) | |
| NP Lycan BM Enigma Chen | |
| 2. Razor |
This file contains hidden or 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 | |
| function convert_id($id) | |
| { | |
| if (strlen($id) === 17) | |
| { | |
| $converted = substr($id, 3) - 61197960265728; | |
| } | |
| else | |
| { |
This file contains hidden or 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
| /** | |
| * simple JSONP support | |
| * | |
| * JSONP.get('https://api.github.com/gists/1431613', function (data) { console.log(data); }); | |
| * JSONP.get('https://api.github.com/gists/1431613', {}, function (data) { console.log(data); }); | |
| * | |
| * gist: https://gist.github.com/gists/1431613 | |
| */ | |
| var JSONP = (function (document) { | |
| var requests = 0, |
NewerOlder