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 | |
use com\openai\rest\OpenAIEndpoint; | |
use io\File; | |
use util\Objects; | |
use web\Application; | |
class TestGPT extends Application { | |
private $ai; |
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 | |
use com\openai\realtime\RealtimeApi; | |
use io\streams\LinesIn; | |
use io\{File, Files}; | |
use util\Objects; | |
use util\log\Logging; | |
use web\Application; | |
class TestRT extends Application { |
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 test; | |
use com\openai\realtime\RealtimeApi; | |
use util\cmd\Console; | |
use lang\Process; | |
const SPINNER= ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']; | |
// Wave file header | |
function wave($numChannels, $sampleRate, $bitsPerSample, $durationSeconds) { |
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
composer.lock | |
vendor/ | |
static/ |
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 | |
use rdbms\{DriverManager, DBConnection}; | |
use web\frontend\{Frontend, AssetsFrom, Handlebars, Get, Post, Delete, Put, View, Param}; | |
use web\{Application, Environment, Handler}; | |
class Todo extends Application { | |
const PATH= 'todos.db'; | |
/** Returns a database connection */ |
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 | |
use util\cmd\Console; | |
use web\Application; | |
use web\frontend\{Frontend, Handlebars, Get, Post, View, Request}; | |
class Upload extends Application { | |
public function routes() { | |
$impl= new class() { |
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 Bold extends Container { | |
public function emit($emit, ... $args) { | |
return $emit->bold($this, ...$args); | |
} | |
} |
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
diff --git a/src/main/php/lang/ast/nodes/Signature.class.php b/src/main/php/lang/ast/nodes/Signature.class.php | |
index 76e3e94..0d946fb 100755 | |
--- a/src/main/php/lang/ast/nodes/Signature.class.php | |
+++ b/src/main/php/lang/ast/nodes/Signature.class.php | |
@@ -5,6 +5,7 @@ use lang\ast\Node; | |
class Signature extends Node { | |
public $kind= 'signature'; | |
public $parameters, $returns, $byref; | |
+ public $generics= []; | |
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 | |
use web\Application; | |
use web\frontend\{Frontend, Handlebars, Get, Post, Delete, Param, View}; | |
class Reactive extends Application { | |
public function routes() { | |
$impl= new class() { | |
private $list= ['One', 'Two']; |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Input</title> | |
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet"> | |
<style> | |
#prompt { | |
font-family: 'Roboto', sans-serif; |
NewerOlder