diff --git a/docs/examples.md b/docs/examples.md index 298d499..321804b 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -495,3 +495,790 @@ Cpu.Qon :~~~~~~~~~~~~~~~~.----------- ``` + +## Complex Circuit Diagram + +```textgram + +-------------------+ +-------------------+ + | AC INPUT | | DC OUTPUT | + | 230V~ | | 5V | + +---------+---------+ +---------+---------+ + | | + .------+------. .------+------. + | Transformer | | Regulator | + '------+------' '------+------' + | | + .------+------. .------+------. + | Bridge | | Filter | + | Rectifier | | Capacitors | + '------+------' '------+------' + | | + +------------+--------------+ + | + .---+---. + | Load | + '-------' +``` + +--- + +## Detailed Flowchart + +```textgram ++-------------------+ +| Start | ++---------+---------+ + | + v ++---------+---------+ +| User Authentication | ++---------+---------+ + | + +-----+-----+ + | | + v v ++----+----+ +----+----+ +| Login | | Register| ++----+----+ +----+----+ + | | + v v ++----+----+ +----+----+ +|Dashboard| | New User | ++----+----+ +----+----+ + | | + | v + | +----+----+ + | |Profile | + | +----+----+ + | | + | v + | +----+----+ + | | Logout | + | +---------+ + | + v ++----+----+ +| Logout | ++---------+ +``` + +--- + +## Complex Data Structure (Binary Tree with Balancing) + +```textgram + +--------+ + | 50 | + +---+----+ + | + +---------+---------+ + | | + +---+----+ +---+----+ + | 25 | | 75 | + +---+----+ +---+----+ + | | + +---+---+ +---+---+ + | | | | ++--+--+ +--+--+ +--+--+ +--+--+ +| 12 | | 37 | | 62 | | 87 | ++----+ +----+ +----+ +----+ + | | | | + +--+ +--+ +--+ +--+ + |18| |43| |58| |93| + +--+ +--+ +--+ +--+ +``` + +--- + +## Detailed Network Topology + +```textgram + +----------------+ + | Internet | + +--------+-------+ + | + +------+------+ + | Firewall | + +------+------+ + | + +--------------+--------------+ + | | ++------+------+ +------+------+ +| DMZ Zone | | Internal LAN | ++------+-----+ +------+-------+ + | | ++------+------+ +------+------+ +| Web Server | | Switch/Hub | ++------------+ +--------+--------+--------+ + | | | | + +---+ +--+--+ +--+--+ +--+--+ + |PC1| |PC2 | |PC3 | |PC4 | + +---+ +-----+ +-----+ +-----+ +``` + +--- + +## Detailed Class Diagram (UML Representation) + +```textgram ++-----------------------+ +| <> | +| PaymentMethod | ++-----------+-----------+ + ^ + | + +----------+-----------+ + | | + | CreditCard | + | | + +----------+-----------+ + | + v ++-----------+-----------+ +| CreditCardPayment | ++-----------------------+ +| - cardNumber: String | +| - expiryDate: Date | +| - cvv: int | ++-----------------------+ +| + validateCard():bool | +| + makePayment(amount) | ++-----------------------+ +``` + +--- + +## Intricate Mind Map + +```textgram + [Central Concept] + | + +-----------------+-----------------+ + | | | +[Aspect A] [Aspect B] [Aspect C] + | | | + +---+---+ +---+---+ +---+---+ + | | | | | | +SubA1 SubA2 SubB1 SubB2 SubC1 SubC2 + | | | +DetailA1 DetailB1 DetailC1 +``` + +--- + +## Complex Organizational Chart + +```textgram + [CEO] + | + +---------------+----------------+ + | | + [CTO/Tech Director] [CFO/Finance Director] + | | ++----+----+ +----+----+ +| | | | +[Dev Team] [IT Support] [Accounting] [Auditing] + | | + [Developers] [Accountants] + | | ++----+----+ | +| | | +[Front-end] [Back-end] [Junior Accountants] +``` + +--- + +## Detailed Timeline with Milestones + +```textgram +Start Date End Date + | | + v v + +--------------+----+----+----+----+----+----+---+ + | | | | | | | | | + | Initiation |----+ | | | | | | + +--------------+ | | | | | | + | | | | | | + +----+----+ | | | | + | Planning |--+ | | | + +----+----+ | | | + | | | | + +----+----+ | | | + | Execution |-------+ | | + +----+----+ | | + | | | + +----+----+ | | + | Monitoring|------------+ | + +----+----+ | + | | + +----+----+ | + | Closure |----------------+ + +-----------+ +``` + +--- + +## Complex Database ER Diagram + +```textgram +[Customer] -----< Places >----- [Order] -----< Contains >----- [Product] + | (1) (M) | (1) (N) + | | +[Address] [Shipment] + | | +(N) (1) +``` + +--- + +## Detailed Biological Cell Structure + +```textgram + +----------------------------------+ + | Cell | + +----------------------------------+ + | | + | +---------------------------+ | + | | Nucleus | | + | +---+-------------------+---+ | + | | | | + | +---+----+ +----+---+ | + | |Chromatin| |Nucleolus| | + | +---------+ +--------+ | + | | + | +----------------------------+ | + | | Mitochondria | | + | +----------------------------+ | + | | + | +----------------------------+ | + | | Endoplasmic Reticulum | | + | +----------------------------+ | + | | + | +----------------------------+ | + | | Ribosomes | | + | +----------------------------+ | + | | + +----------------------------------+ +``` + +--- + +## Complex Mathematical Diagram + +```textgram + y-axis + ^ + | + 3 | * (0,3) + | + 2 | * * + | + 1 | * * + | + -3 -2 -1 0 1 2 3 ---> x-axis + | + -1 | * * + | + -2 | * * + | + -3 | * (0,-3) + | + +Graph of the function y = x^2 +``` + +--- + +## Detailed Astrological Chart + +```textgram + +-------------------------------+ + | Zodiac Wheel | + +-------------------------------+ + | Aries | Taurus | + |-----------------|-------------| + | House I | House II | + | | | + | Sun Position | Moon Position + | | | + |-----------------|-------------| + | Gemini | Cancer | + |-----------------|-------------| + | House III | House IV | + | | | + | Mercury | Venus | + +-----------------+-------------+ +``` + +--- + +## Complex Software Architecture Diagram + +```textgram + +-------------------+ + | Presentation | + | Layer | + +---------+---------+ + | + +---------+---------+ + | Application | + | Layer | + +---------+---------+ + | + +---------+---------+ + | Business | + | Logic | + | Layer | + +---------+---------+ + | + +---------+---------+ + | Data Access | + | Layer | + +---------+---------+ + | + +---------+---------+ + | Database | + +-------------------+ +``` + +--- + +## Complex Mind Map with Connections + +```textgram + [Central Theme] + / | \ + / | \ + [Idea 1]---[Idea 2]---[Idea 3] + / \ | / \ + [A] [B] [C] [D] [E] + \ / | \ / + [Sub-idea]----[Connecting Point] + \ / + [Integration] +``` + +--- + +## Detailed Galaxy Representation + +```textgram + * * * * + * * * * + * Milky Way * + * * * * + * * * + * * + * + Solar System + / \ + Earth Mars + \ + Humanity +``` + +--- + +## Intricate Molecular Structure + +```textgram + H H + \ / + C + / \ + H C === O + | + O - H + +Ethanol (C2H5OH) +``` + +--- + +## Advanced Organizational Hierarchy + +```textgram + [Board of Directors] + | + +----------------+----------------+ + | | + [Chief Executive Officer] [Advisory Board] + | + +-----------+-----------+----------------+ + | | | + [Chief Operating Officer] [Chief Financial Officer] [Chief Technology Officer] + | | | + [Operations] [Finance] +-----+-------+ + | | | | + +-----+-----+ +----+----+ [IT Dept] [R&D Dept] + | | | | +[Logistics][Human Resources][Accounting][Investor Relations] +``` + +--- + +## Complex Project Plan Gantt Chart Representation + +```textgram +Project Timeline: + +Phase 1: Planning [#######.................] (Jan - Feb) +Phase 2: Design [......#######...........] (Mar - Apr) +Phase 3: Development[..........#########....] (May - Jul) +Phase 4: Testing [..............#######..] (Aug - Sep) +Phase 5: Deployment [...................###.] (Oct - Nov) +Phase 6: Maintenance[....................###] (Dec onward) + +Time Frame: +Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec +``` + +--- + +## Intricate Chemical Process Flow + +```textgram + [Raw Materials]-->[Mixer]-->[Reactor]-->[Separator]---+ + | + +------------+-----------+ + | | + [Byproduct] [Product] + | | + [Waste Treatment] [Packaging] +``` + +--- + +## Detailed Solar System Diagram + +```textgram +Sun + | + +--Mercury + | + +--Venus + | + +--Earth + | +--Moon + | + +--Mars + | +--Phobos + | +--Deimos + | + +--Asteroid Belt + | + +--Jupiter + | +--Europa + | +--Ganymede + | +--Callisto + | +--Io + | + +--Saturn + | +--Titan + | +--Enceladus + | + +--Uranus + | + +--Neptune + +--Triton +``` + +--- + +## Complex Mathematical Equation Diagram + +```textgram +Quadratic Equation: + + ax^2 + bx + c = 0 + | + v + Discriminant (Δ) = b^2 - 4ac + | + +----------+----------+ + / \ + Δ > 0 Δ = 0 Δ < 0 + | | | +Real and distinct roots Real and equal roots Complex roots + x = (-b ± √Δ)/(2a) x = -b/(2a) x = (-b ± i√-Δ)/(2a) +``` + +--- + +## Industrial Process Control Diagram + +```textgram ++-------------------+ +| Control Center | ++-------------------+ + | + +------+------+ + | | ++----+----+ +---+----+ +| Sensor | | Actuator| ++----+----+ +---+----+ + | | +[Temperature] [Valve Position] + | | + Process ---- Feedback Loop ----- + +``` + +--- + +## Detailed Software Development Lifecycle + +```textgram + +---------------------+ + | Requirements | + +----------+----------+ + | + +----------+----------+ + | Design | + +----------+----------+ + | + +----------+----------+ + | Implementation | + +----------+----------+ + | + +----------+----------+ + | Testing | + +----------+----------+ + | + +----------+----------+ + | Deployment | + +----------+----------+ + | + +----------+----------+ + | Maintenance | + +---------------------+ +``` + +--- + +## Complex Venn Diagram + +```textgram + .-----------. + ( A ) + '----------.-' + \ / + \ / + .-'----'--. + ( B ) + '-----------' + +Areas: +- A only +- B only +- A ∩ B (Intersection) +``` + +--- + +## Detailed Electrical Engineering Diagram + +```textgram + +------+ +------+ + AC ---> |Transformer| ---> |Rectifier| ---> + -----> Load + +------+ +------+ + | + --- + --- + - + | + ----- + ----- Capacitor (Filter) + | + GND +``` + + + +## Advanced Network Diagrams + +```textgram + +-------------+ +------------+ + | Firewall |<----->| Internet | + +-------------+ +------------+ + | | + +---------------+ +-----------+ + | Load Balancer |<--->| VPN | + +---------------+ +-----------+ + / | \ | + +----+ +---+ +----+ +---+ + | DB | |Web| |File|<--->| NAS | + +----+ +-+ + +----+ +---+ + | + +-----+----+ + | Authentication | + +---------------+ +``` + +## Detailed Circuit Designs + +```textgram + ___ + Vcc +---|___|---+----------------------------+ + | | | + .-. | .---. | + | | Res 1 | | | / + | | | |AND|< + '-' | | |\ + | | '---' | + | +--+ .---. | + | | | Comparator +---| | | + +---|--+--|--|>|---+ |OR | | | + | | | | *---|<-------->| |---+ | + | | | +------+------+ '---' | + | | |____ _| _ | + | | | |_ _| | + | | +---+ | A GND + | +-----------+---+-----+ | + +---------------| LED |----------+--+ + |_______| | + GND | +``` + +## Dynamic Flowcharts + +```textgram + +----------------+ + | User Request | + +--------+-------+ + | + v + +------------------+ + | Validate Input | + +--------+---------+ + | Yes + v + +---+---+ + | Parse | + | Input | + +---+---+---+ + | Error | Data + v v + +----+---+ +-------------+ + | Log Error | Process Data | + +-----------+-------------+ + | + v + +---------------+ + | Generate Output | + +--------+------+ + | + / \ + / \ Inform + Success Failure ---> Admin + \ / + \ / + | + v + +-----------------+ + | Send Response | + +-----------------+ + | + End +``` + +## Complex Trees + +```textgram + CEO + / \ + +-------------+ +--------------+ + | | + Manager A Manager B + / \ / | \ + +---+ +---+ +---+ +---+ +---+ + |Dev1| |Dev2| |Ops1| |Ops2| |QA1| + +---+ +---+ +---+ +---+ +---+ + Constitution of Teams | + | +------+---------+ + | | Automated Tools | + | +------+----------+ + | | ++--+ +----+----+ +---+ +---+ | +|UI|-->| Frontend | |API|-->Backend | ++--+ +----+----+ +---+ +---+ | + DevOps +``` + +## Mathematical Representations + +```textgram + Taylor Series +f(x) = Σ (f^n(a)/n!) * (x-a)^n + n=0 to ∞ + +Example: e^x + + e^x = 1 + x + (x^2)/2! + (x^3)/3! + (x^4)/4! + ... + ++-----------------+ +| Matrix A | + +-----------------+ +| [a11 a12 a13]| * |[x1 x2]| = |[b11 b12 b13]| +| [a21 a22 a23]| + |[y1 y2]| |[b21 b22 b23]| ++---------------+ +-----------------+ + +|a11| = |x1| * |b11| + |y2| * |0| +|a22| |x2| * |0| + |x3| * |b21| ++------------+ +------------+ + |b22 b23| +``` + +## Intricate Scribbles + +```textgram + Logic Gates Circuit + +---------+ +------+ + | Input A |------>| | + +---------+ |AND |--------+ + | | | + +---------+ +------+ +---+---+ + | Input B |------------------>| OR | + +---------+ +------+ +---+ | + | | | | | + +---------+ | NOT |---+ +-------+ + | Input C |-->| | | | + +---------+ +------+ | NAND | + | | + +-->| | + | +---+---+ + | | + +---+ | + | Input D | + +-----------+ +``` + +## Advanced Grids + +```textgram ++---+---+---+---+---+ +| 1 | 2 | 3 | 4 | 5 | ++---+---+---+---+---+ +| 6 | 7 | 8 | 9 |10 | ++---+---+---+---+---+ +|11 |12 |13 |14 |15 | ++---+---+---+---+---+ +|16 |17 |18 |19 |20 | ++---+---+---+---+---+ +|21 |22 |23 |24 |25 | ++---+---+---+---+---+ + +Sudoku: ++-------+-------+-------+ +| 5 3 . | . 7 . | . . . | +| 6 . . | 1 9 5 | . . . | +| . 9 8 | . . . | . 6 . | ++-------+-------+-------+ +| 8 . . | . 6 . | . . 3 | +| 4 . . | 8 . 3 | . . 1 | +| 7 . . | . 2 . | . . 6 | ++-------+-------+-------+ +| . 6 . | . . . | 2 8 . | +| . . . | 4 1 9 | . . 5 | +| . . . | . 8 . | . 7 9 | ++-------+-------+-------+ +```