Skip to content

Instantly share code, notes, and snippets.

@ERuban
ERuban / tictactoe.rb
Last active August 29, 2015 14:24
Пока что простой вариант и без логики игры компа.
@hh = {'1' => ' ', '2' => ' ', '3' => ' ',
'4' => ' ', '5' => ' ', '6' => ' ',
'7' => ' ', '8' => ' ', '9' => ' '}
def print_table
puts ''
puts "\t\tChoose"
puts " #{@hh['1']}|#{@hh['2']}|#{@hh['3']}\t\t1|2|3"
puts " -----\t\t-----"
puts " #{@hh['4']}|#{@hh['5']}|#{@hh['6']}\t\t4|5|6"
@ERuban
ERuban / list.md
Created April 18, 2018 04:41 — forked from umpirsky/list.md
Symfony e-commerce solutions.
@ERuban
ERuban / RemoveFromDocsDecorator.php
Created June 2, 2021 12:55
[ApiPlatform] Remove endpoints from documentation
<?php
declare(strict_types=1);
namespace App\Swagger;
use ApiPlatform\Core\Documentation\Documentation;
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
use ApiPlatform\Core\Metadata\Resource\ResourceNameCollection;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;