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
C:\>php flatten.php | |
array(4) { | |
[0]=> | |
int(11) | |
[1]=> | |
int(12) | |
[2]=> | |
int(13) | |
[3]=> | |
int(14) |
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
For timezone 'Australia/Melbourne': | |
2018-03-31 10:00:00 | |
+ 24*60*60 == 2018-04-01 09:00:00 | |
strtotime(+1 day) == 2018-04-01 10:00:00 | |
DateTime->add(1d) == 2018-04-01 10:00:00 | |
2018-10-06 10:00:00 | |
+ 24*60*60 == 2018-10-07 11:00:00 | |
strtotime(+1 day) == 2018-10-07 10:00:00 | |
DateTime->add(1d) == 2018-10-07 10:00:00 |
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
window.moment = require('moment'); | |
require('daterangepicker'); | |
require('bootstrap-select'); |
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 | |
/* | |
* The code mostly peeped in artisan executable file. | |
* Put this file to project root (one level above DocumentRoot) and run | |
* $ php example.php | |
*/ | |
if (php_sapi_name() !== 'cli') { | |
die('This file can be executed from console only'); | |
} |
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 | |
class JpegSectionIterator implements \Iterator | |
{ | |
const | |
UNKNOWN = 'unknown', | |
SOI = 'SOI', // Start Of Image | |
SOF0 = 'SOF0', // Start Of Frame (baseline DCT) | |
SOF1 = 'SOF1', // Start Of Frame (extended DCT) | |
SOF2 = 'SOF2', // Start Of Frame (progressive DCT) |
OlderNewer