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
web: pid1 --nginxBinaryPath nginx --nginxConfigPath /layers/google.php.webconfig/webconfig/nginx.conf --serverConfigPath /workspace/nginxserver.conf --nginxErrLogFilePath /layers/google.php.webconfig/webconfig/nginx.log --customAppCmd "php-fpm -R --nodaemonize --fpm-config /layers/google.php.webconfig/webconfig/php-fpm.conf" --pid1LogFilePath /layers/google.php.webconfig/webconfig/pid1.log --mimeTypesPath /layers/google.utils.nginx/nginx/conf/mime.types --customAppSocket /layers/google.php.webconfig/webconfig/app.sock |
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
web: heroku-php-nginx -C nginx.conf public |
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
export type User = { | |
id: number | |
name: string | |
} | |
export interface UserRepositoryInterface { | |
list(): User[] | |
} |
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 | |
declare(strict_types=1); | |
/** | |
* (experimental) | |
* cakephperize your icons | |
* | |
* usage) | |
* $ php cakephperize.php {file_url} {threshold} |
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 | |
// EloquentのEager Loadを無理やり使うバージョン | |
/** @var \Illuminate\Support\Collection<\stdClass> $userAndPoints */ | |
$userAndPoints = Status::query() | |
->with('user.userDetail') | |
->select('user_id') | |
->selectRaw('sum(point) As point') | |
->groupBy('user_id') |
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
module Main exposing (main) | |
import Browser | |
import Browser.Events exposing (onAnimationFrame) | |
import Html exposing (Html, button, div, p, table, tbody, td, text, th, thead, tr) | |
import Html.Events exposing (onClick) | |
import List | |
import Task | |
import Time | |
import Tuple |
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 | |
declare(strict_types=1); | |
namespace App\Http\Middleware; | |
use Carbon\Carbon; | |
use Closure; | |
use Exception; | |
use Illuminate\Http\Request; | |
use Symfony\Component\HttpFoundation\Cookie; |
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
#!/usr/bin/env bash | |
# コンテナを起動 | |
function up { | |
docker-compose up -d | |
} | |
# コンテナ停止 | |
function down { | |
docker-compose down |
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 | |
declare(strict_types=1); | |
namespace App\Support; | |
use Illuminate\Support\Str; | |
class StrBuilder | |
{ | |
/** |
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 | |
// usage | |
/** @var \Illuminate\Support\LazyCollection<Post> $lazyPosts */ | |
$lazyPosts = Post::query() | |
->lazyChunk(100) | |
->tapEach(function (Collection $posts) { | |
$posts->load('author'); | |
}) | |
->collapse(); |
NewerOlder