- pass a request down a chain of objs until one handles the request.
- handler objs either handle or forward a request.
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 | |
| /** | |
| * Class Container | |
| */ | |
| class Container | |
| { | |
| /** | |
| * @var array | |
| */ |
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 sh | |
| # Installation of __Composer__ to manage project dependancies | |
| # save to and run script from `proj_path/scripts/` directory. | |
| # verify download by checking file signature | |
| EXPECTED_SIGNATURE="$(curl https://composer.github.io/installer.sig)" | |
| # download the installer | |
| php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |
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
| #!/bin/bash | |
| # query.sh from BreachCompilation - magnet:?xt=urn:btih:7ffbcd8cee06aba2ce6561688cf68ce2addca0a3 | |
| # works with older bash versions. | |
| # patch by Willem <itsme@xs4all.nl> | |
| dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
| if [ "$1" != "" ]; then | |
| word1=$(echo $1 | tr A-Z a-z) | |
| letter1=$(echo $word1|cut -b1) | |
| if [[ $letter1 == [a-zA-Z0-9] ]]; 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title></title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| </head> | |
| <body> |
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 | |
| /** | |
| * On every loop of `while(true)` we check: | |
| * 1. If all elements in group have same head -> extract it to common head, | |
| * 2. If all elements in group have same tail -> extract it to common tail, | |
| * 3. If some elements have common head -> create sub group of this elements, and put there head as common head of group, | |
| * 4. Same for tails. | |
| * If none of previous happen - we stop loop. | |
| * Then check if current group has empty entry and convert it to optional (like `(a|b|) -> (a|b)?`). |
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
| flowchart LR | |
| mainsys["Main System Prompt"]:::red -->m["environment and background"] | |
| delegatesys["Delegate System Prompt"]:::one -.->|·1·|a["instructions on how to delegate to subagents"] | |
| subagentsys["SubAgent System Prompts"]:::two -->s["character instructions"] | |
| delegatesys -.->|·3…*·|s | |
| delegatesys -.->|·2·|m | |
| red{{red}}:::red ==>org[/org/]:::org -.->yel[/yel\]:::yel ---lim(((lim))):::lim -->|lbl|grn[grn]:::grn --text-->tea{teal}:::tea -->aqa(aqa):::aqa | |
| red -->pnk[(pnk)]:::pnk -->maj[[maj]]:::maj -->pur([pur]):::pur -->blu((blu)):::blu ~~~ cyn>cyn]:::cyn | |
| classDef red fill:#600,stroke:#400,stroke-width:4; |
OlderNewer