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 generate_time($timeString='now'){ | |
| $datetime = new \DateTime($timeString); | |
| $string = sprintf("%02d-%06d-%08d-%02d", | |
| mt_rand(0,99), | |
| $datetime->format('u'), | |
| ( | |
| $datetime->format('z')*24*60*60 | |
| + $datetime->format('H')*60*60 |
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
| var PaktPub = (function () { | |
| "use strict"; | |
| var freeLearningURL = 'https://www.packtpub.com/packt/offers/free-learning', | |
| logoutURL = 'https://www.packtpub.com/logout'; | |
| var notify = function (message, timeout) { | |
| var useNotificationAPI = false; | |
| if ("Notification" in window) { | |
| if (Notification.permission === "granted") { | |
| useNotificationAPI = true; | |
| } else if (Notification.permission !== 'denied') { |
NewerOlder