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 Niisan\PhpElasticsearchQuerybuilder; | |
class QueryBuilder | |
{ | |
private array $query = []; | |
private string $mode = 'must'; | |
public function match(string $field, string $content): self |
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 Niisan\App\Generator; | |
use Reflection; | |
use ReflectionClass; | |
use ReflectionMethod; | |
use RuntimeException; | |
class ImplementGenerator | |
{ |
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 | |
$sum = 0; | |
for ($i = 1; $i < 10; $i++) { | |
$sum += $i; | |
} | |
echo $sum; |
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
<!DOCTYPE html> | |
<html lang="ja" dir="ltr" itemscope itemtype="http://schema.org/Article"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<div class="camera"> | |
<video id="video">Video stream not available.</video> | |
</div><br> | |
<button id="startbutton">start!!</button><button id="stopbutton">stop!!</button><button id="download">download!!</button><br> |
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 | |
$output = '../data/timeline_data'; | |
$number = 10000;// 生成するデータ数 | |
$tnum = $number * 0.1;// テストに使用するデータ数 | |
$samples = 32;// 時系列の予測に使用する連続したデータ点の個数 | |
$answers = 10;// 予測する次の連続したデータ点の個数 | |
$raw_data = []; | |
$pi = pi(); |
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 NiisanTokyo; | |
/** | |
* ランキング生成・取得クラス | |
* | |
* phpredis エクステンションが必要 | |
* | |
* @see https://github.com/phpredis/phpredis | |
*/ |
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 NiisanTokyo\As2sm; | |
use Evenement\EventEmitter; | |
use React\EventLoop\LoopInterface; | |
/** | |
* The asynchronous wrapper for MySQL | |
*/ |