- 2010 http://www.symfony.gr.jp/adventcalendar/2010
- 2011 https://atnd.org/events/22378
- 2012 https://adventar.org/calendars/24
- 2013 行方不明(やらなかったかも?)
- 2014 https://qiita.com/advent-calendar/2014/symfony
- 2015 https://qiita.com/advent-calendar/2015/symfony
- 2016 https://qiita.com/advent-calendar/2016/symfony
- 2017 https://qiita.com/advent-calendar/2017/symfony
- 2018 https://qiita.com/advent-calendar/2018/symfony
- 2019 https://qiita.com/advent-calendar/2019/symfony
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
enable_post_data_reading=Off |
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 AnswerToゲームほしい implements AnswerStrategyInterface | |
{ | |
public function supports(string $ask): bool | |
{ | |
return $ask === 'ゲームほしい'; | |
} |
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 | |
namepace App\Jobs; | |
// 略 | |
class FooJob implements ShouldQueue | |
{ | |
private $param1; | |
private $param2; |
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
{"AccountCurrencyCode":"customer.currency_code","AccountDescriptiveName":"customer.descriptive_name","AccountTimeZone":"customer.time_zone","ActiveViewCpm":"metrics.active_view_cpm","ActiveViewCtr":"metrics.active_view_ctr","ActiveViewImpressions":"metrics.active_view_impressions","ActiveViewMeasurability":"metrics.active_view_measurability","ActiveViewMeasurableCost":"metrics.active_view_measurable_cost_micros","ActiveViewMeasurableImpressions":"metrics.active_view_measurable_impressions","ActiveViewViewability":"metrics.active_view_viewability","AdNetworkType1":"AdNetworkType1 and AdNetworkType2 have been combined into segments.ad_network_type","AdNetworkType2":"segments.ad_network_type","AllConversionRate":"metrics.all_conversions_from_interactions_rate","AllConversionValue":"metrics.all_conversions_value","AllConversions":"metrics.all_conversions","AverageCost":"metrics.average_cost","AverageCpc":"metrics.average_cpc","AverageCpe":"metrics.average_cpe","AverageCpm":"metrics.average_cpm","AverageCpv":"metr |
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 | |
$array1 = range(1, 1000000); | |
$array2 = range(1, 10); | |
$start = microtime(true); | |
$result = []; | |
foreach ($array1 as $value1) { | |
foreach ($array2 as $value2) { | |
$result[] = $value1 * $value2; |
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 | |
namespace App\Controller; | |
use Doctrine\Common\Persistence\ManagerRegistry; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\FormFactoryInterface; | |
use Symfony\Component\Form\FormInterface; | |
use Symfony\Component\Form\Extension\Core\Type\FormType; |
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 | |
namespace Nanaweb\Doctrine\DateFunctionExtension; | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
use Doctrine\ORM\Query\Lexer; | |
use Doctrine\ORM\Query\Parser; | |
use Doctrine\ORM\Query\SqlWalker; |
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 | |
$targetDir = __DIR__.'/awos'; | |
$dir = dir($targetDir); | |
$mdFiles = []; | |
while ($file = $dir->read()) { | |
if (false !== strpos($file, '.md') || false !== strpos($file, '.markdown')) { | |
$mdFiles[] = $file; | |
} | |
} |
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
G = { | |
grouping: function(elements) { | |
var i,j,k = 0; | |
var groups= []; | |
for (i = 1; i <= elements.length; i++) { // i:分割後のグループ数 | |
var grps = G.divideIntoGroups(elements, i); | |
for (j = 0; j < grps.length; j++) { | |
groups.push(grps[j]); | |
} |
NewerOlder