Skip to content

Instantly share code, notes, and snippets.

@koolamusic
Last active September 30, 2023 10:38
Show Gist options
  • Save koolamusic/a3fe4e487033e0d8a73ef315a285c399 to your computer and use it in GitHub Desktop.
Save koolamusic/a3fe4e487033e0d8a73ef315a285c399 to your computer and use it in GitHub Desktop.
Blog Mermaids
classDiagram
    class User {
        +String username
        +String email
        +login()
        +book()
    }
    class Booking {
        +Int bookingID
        +Date date
        +String status
        +cancel()
        +update()
    }
    class Venue {
        +Int venueID
        +String name
        +String location
        +getAvailability()
        +setAvailability()
    }

    User --|> Booking : makes
    Booking --|> Venue : has

erDiagram
    USER ||--o{ BOOKING : "makes" 
    VENUE ||--o{ BOOKING : "has" 
    BOOKING {
        int BookingID
        int UserID
        int VenueID
        date BookingDate
        string PaymentStatus
    }
    USER {
        int UserID
        string Username
        string Email
    }
    VENUE {
        int VenueID
        string Name
        string Location
    }

graph TD
    A[Start] --> B[Login]
    B --> C{Is Venue Available?}
    C -->|Yes| D[Select Venue]
    C -->|No| E[Search Again]
    E --> C
    D --> F[Confirm Booking]
    F --> G[Make Payment]
    G --> H[Receive Confirmation]
    H --> I[End]

sequenceDiagram
    participant Developer
    participant LLM
    Developer->>LLM: Generate "failing" and "passing" inputs
    LLM-->>Developer: Inputs generated
    Developer->>LLM: Test application with generated inputs
    LLM-->>Developer: Return test results
@koolamusic
Copy link
Author

classDiagram
class User {
+String username
+String email
+login()
+book()
}
class Booking {
+Int bookingID
+Date date
+String status
+cancel()
+update()
}
class Venue {
+Int venueID
+String name
+String location
+getAvailability()
+setAvailability()
}

User --|> Booking : makes
Booking --|> Venue : has

@koolamusic
Copy link
Author

graph TD
    A[Start] --> B[Login]
    B --> C{Is Venue Available?}
    C -->|Yes| D[Select Venue]
    C -->|No| E[Search Again]
    E --> C
    D --> F[Confirm Booking]
    F --> G[Make Payment]
    G --> H[Receive Confirmation]
    H --> I[End]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment