Type: System Design
Date: 2026-04-17
Status: Design Phase
Related: [[research-queue|Research Queue]], [[IRIS|Wiki Schema]]
This file contains hidden or 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\Tools\Memory; | |
| use App\Models\Memory; | |
| use Prism\Prism\Tool; | |
| class CategorizeMemoriesTool extends Tool |
This file contains hidden or 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 | |
| script_name="$(basename "$0")" | |
| _verify_dependencies() { | |
| _print_err() { | |
| printf "[$SCRIPT_NAME] \033[31m%s\033[0m\n" "$1" | |
| } | |
| if ! command -v gum &>/dev/null; then |
This file contains hidden or 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
| -- Define the map of applications and their default sizes | |
| local appSizeMap = { | |
| ["Telegram"] = {{w=470, h=900}, {w=1160, h=710}}, | |
| ["Todoist"] = {{w=635, h=920}, {w=1115, h=760}}, | |
| ["Slack"] = {{w=1300, h=780}, {w=980, h=670}}, | |
| ["WezTerm"] = {w=1357, h=920} | |
| } | |
| -- Store the current index of the size for each application | |
| local appSizeIndex = {} |
This is the process and standard that I use for the vast majority of my Laravel code bases and projects.
For more information about php-cs-fixer visit the project repository: FriendsOfPHP/PHP-CS-FIXER.
Add the following .php_cs file to the root of your project.
.php_cs
This is a little trait I use to stack output over the course of a command and display all the output at the end.
trait StackableOutput
{
protected $stackedOutput = [];
private function stackOutput($content, $type = 'line')
{
array_push($this->stackedOutput, [
This file contains hidden or 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
| published: true |
This file contains hidden or 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
| published: true |
NewerOlder