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
package main | |
import ( | |
"fmt" | |
"time" | |
"intulid" | |
"github.com/oklog/ulid/v2" | |
) |
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
func numIslands(grid [][]byte) int { | |
if len(grid) == 0 { | |
return 0 | |
} else if len(grid[0]) == 0 { | |
return 0 | |
} | |
cols := len(grid) | |
rows := len(grid[0]) | |
var islands int |
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\Infra\Monolog; | |
use GuzzleHttp\Client; | |
use Monolog\Handler\AbstractProcessingHandler; | |
use Psr\Log\LoggerInterface; | |
use Symfony\Component\Console\ConsoleEvents; |
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\Infra\Symfony; | |
use Symfony\Component\DependencyInjection\EnvVarProcessorInterface; | |
use Symfony\Component\DependencyInjection\Exception\EnvNotFoundException; | |
use Symfony\Component\DependencyInjection\Exception\RuntimeException; | |
class FileOrContentEnvVarProcessor implements EnvVarProcessorInterface | |
{ |
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
package app | |
import ( | |
"gocv.io/x/gocv" | |
"image" | |
"sort" | |
) | |
type RefMat struct { | |
cols int |
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
if (( "$#" != 1 )) | |
then | |
echo Host is required! | |
exit | |
fi | |
PROJECT_NAME=${PWD##*/} | |
mkdir -p dump |
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
version: '3.4' | |
services: | |
app: | |
image: 'formapro/nginx-php-fpm:latest-all-exts' | |
working_dir: '/app' | |
volumes: | |
- './:/app:cached' | |
env_file: '.env' | |
networks: |
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
[entryPoints] | |
[entryPoints.http] | |
address = ":80" | |
[entryPoints.https] | |
address = ":443" | |
[entryPoints.https.tls] | |
[acme] | |
email = "[email protected]" |
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
version: '3.1' | |
services: | |
registry: | |
restart: always | |
image: registry:2 | |
volumes: | |
- registry:/var/lib/registry | |
environment: | |
- REGISTRY_HTTP_ADDR=0.0.0.0:5000 |
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 Ecom\Price\Model; | |
use Makasim\Values\ValuesTrait; | |
class Price | |
{ | |
use ValuesTrait; | |
/** |
NewerOlder