Doctrine Command Line Interface version 2.4.8
Usage:
command [options] [arguments]
Options:
-h, --helpDisplay this help message-q, --quietDo not output any message-V, --versionDisplay this application version--ansiForce ANSI output
| # https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-debian-9 | |
| cd ~ | |
| curl -sS https://getcomposer.org/installer -o composer-setup.php | |
| # https://composer.github.io/pubkeys.html (Installer Checksum (SHA-384)) | |
| HASH=544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061 | |
| php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" |
| public function register() | |
| { | |
| ... | |
| if ($this->app->isLocal()) { | |
| $this->app->register(TelescopeServiceProvider::class); | |
| } | |
| } |
Doctrine Command Line Interface version 2.4.8
Usage:
command [options] [arguments]Options:
-h, --help Display this help message-q, --quiet Do not output any message-V, --version Display this application version--ansi Force ANSI output| public class TestStopWatch { | |
| private static final Logger log = LoggerFactory.getLogger(MealServiceTest.class); | |
| private static StringBuilder result = new StringBuilder(); | |
| // https://junit.org/junit4/javadoc/4.12/org/junit/rules/Stopwatch.html | |
| @Rule | |
| public Stopwatch stopwatch = new Stopwatch() { | |
| @Override | |
| protected void finished(long nanos, Description description) { |
| <?php | |
| /** | |
| * Created by Alpha-Hydro. | |
| * @link http://www.alpha-hydro.com | |
| * @author Vladimir Mikhaylov <admin@alpha-hydro.com> | |
| * @copyright Copyright (c) 2017, Alpha-Hydro | |
| * | |
| */ | |
| return [ |
Создаем рабочее дерево public из основной ветки и переходим в созданный каталог (ветка public)
$ git worktree add -b public ../temp master
$ pushd "../temp"Делаем необходимые изменения в .gitignore
source/
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| /* | |
| Сортировка чисел в убывающем порядке | |
| */ | |
| public class Solution { | |
| public static void main(String[] args) throws Exception { | |
| BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); |
| <?php | |
| /** | |
| * @param $array | |
| * @param array $keys | |
| * @return array | |
| */ | |
| public function arrayGroupBy(&$array, $keys) | |
| { | |
| $result = []; |
| <xsl:template match="/shop"> | |
| ... | |
| <xsl:if test="total > 0 and limit > 0"> | |
| <xsl:variable name="count_pages" select="ceiling(total div limit)"/> | |
| <xsl:variable name="visible_pages" select="15"/> | |
| <xsl:variable name="real_visible_pages"> | |
| <xsl:choose> | |
| <xsl:when test="$count_pages < $visible_pages"> |
| <?php | |
| defined('HOSTCMS') || exit('HostCMS: access denied.'); | |
| /** | |
| * Расширение стандартного контроллера Shop_Controller_Show. | |
| * При показе текущей группы отображает товары в подгруппах независимо от вложенности. | |
| * | |
| * При фильтрации и сортировке ярлыков товаров подменяет ярлыки на реальные товары | |
| * Что позволяет выполнять сортировку и фильтрацию товаров в группе | |
| * | |
| * Добавить файл в папку /modules/shop/controller/ext/filter |