See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| @echo off | |
| set BASE_BACKUP_DIR=D:\dev\.local_databases | |
| set MYSQL_USER=root | |
| set MYSQL_PASSWORD= | |
| set MYSQL_HOST=mysql-8.0 | |
| set MYSQL_PORT=3306 | |
| set TIMESTAMP=%date:~-4,4%%date:~-7,2%%date:~0,2%_%time:~0,2%%time:~3,2% | |
| set TIMESTAMP=%TIMESTAMP: =0% |
| @function str-split($string, $separator: " ") { | |
| $i: str-index($string, $separator); | |
| @if $i != null { | |
| @return append( | |
| str-slice($string, 1, $i - 1), | |
| str-split(str-slice($string, $i + str-length($separator)), $separator) | |
| ); | |
| } | |
| @return $string | |
| } |
| <?php | |
| /** | |
| * @author delphinpro <[email protected]> | |
| * @copyright copyright © 2019 delphinpro | |
| * @license licensed under the MIT license | |
| * | |
| * File: core/custom/packages/custom/src/Console/BackupCommand.php | |
| */ | |
| <?php | |
| /** | |
| * PageBuilderInheritable | |
| * | |
| * @author delphinpro <[email protected]> | |
| * @copyright copyright © 2019 delphinpro | |
| * @license licensed under the MIT license | |
| */ | |
| <?php | |
| $InstallData = EvoInstaller::getPackageInfo(); | |
| EvoInstaller::doInstall('2.0'); | |
| class EvoInstaller{ | |
| static public function downloadFile ($url, $path) { | |
| $newfname = $path; | |
| $rs = file_get_contents($url); | |
| if($rs) $rs = file_put_contents($newfname,$rs); | |
| return $rs; |
| <?php | |
| /* | |
| Usage: | |
| [[includeStylesheet? &file=`/path/to/style.css` ]] | |
| */ | |
| if (!isset($file)) { | |
| return ''; | |
| } | |
| $filePath = MODX_BASE_PATH.$file; |
| <div class="accordion accordion_open"> | |
| <div class="accordion__header"> | |
| <div class="accordion__title">Заголовок</div> | |
| <button class="accordion__toggle" type="button"><span class="sr-only">Открыть</span></button> | |
| </div> | |
| <div class="accordion__body"> | |
| <div class="accordion__content"> | |
| <p>Сайт рыбатекст поможет дизайнеру, верстальщику, вебмастеру сгенерировать | |
| несколько абзацев более менее осмысленного текста рыбы на русском языке, | |
| а начинающему оратору отточить навык публичных выступлений в домашних условиях. |
| <div class="block"> | |
| <img class="img" src="image.png" alt=""> | |
| </div> |
| config.sprite.bitmap = { | |
| srcPath : 'source/sprites/bitmap', | |
| srcFiles : '*.{jpg,jpeg,png,gif}', | |
| src2x : 'source/sprites/bitmap/services/*@2x.png', | |
| destImage: path.join(root.build, root.staticDir, 'images'), | |
| destStyle: 'source/sass/', | |
| }; |