Skip to content

Cheat

Executable Code (REPLIT)

Change values ASTRA_DB_TOKEN, ASTRA_DB_ID, ASTRA_DB_REGION, ASTRA_DB_KEYSPACE in the code below and execute with

dl

Mermaids

1️⃣ Flow

Cassandra

graph LR
    user>fa:fa-user Developer]-- Create Database --> cassandra[(fa:fa-database Cassandra)]

    user-- Design -->usecase{{fa:fa-cube Use Case}}
    usecase-- Workflow -->queries[fa:fa-bezier-curve queries]
    usecase-- MCD -->entities[fa:fa-grip-vertical entities]
    queries-- Chebotko modelization -->schema[fa:fa-list schema]
    entities-- Chebotko modelization -->schema[fa:fa-list schema]
    schema[fa:fa-list  schema]-- Inject -->cassandra[(fa:fa-database Cassandra)]

    user-- prepare -->dataset{{fa:fa-coings DataSet}}
    dataset-- input -->dsbulk-- load data -->cassandra

    user-- Create Token -->token{{fa:fa-key Token}}
    usecase-->API

    API-->Request
    token-->Request
    schema-->Request
    Request-- invoke -->cassandra
graph LR
    user>fa:fa-user Developer]-- Create Database --> cassandra[(fa:fa-database Cassandra)]

    user-- Design -->usecase{{fa:fa-cube Use Case}}
    usecase-- Workflow -->queries[fa:fa-bezier-curve queries]
    usecase-- MCD -->entities[fa:fa-grip-vertical entities]
    queries-- Chebotko modelization -->schema[fa:fa-list schema]
    entities-- Chebotko modelization -->schema[fa:fa-list schema]
    schema[fa:fa-list  schema]-- Inject -->cassandra[(fa:fa-database Cassandra)]

    user-- prepare -->dataset{{fa:fa-coings DataSet}}
    dataset-- input -->dsbulk-- load data -->cassandra

    user-- Create Token -->token{{fa:fa-key Token}}
    usecase-->API

    API-->Request
    token-->Request
    schema-->Request
    Request-- invoke -->cassandra

Example #1

graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
   ```mermaid
   graph TD;
     A-->B;
     A-->C;
     B-->D;
     C-->D;
   ```

Example3

graph TD
  A[Hard] -->|Text| B(Round)
  B --> C{Decision}
  C -->|One| D[Result 1]
  C -->|Two| E[Result 2]
   ```mermaid
   graph TD
     A[Hard] -->|Text| B(Round)
     B --> C{Decision}
     C -->|One| D[Result 1]
     C -->|Two| E[Result 2]
   ```

2️⃣ Sequence

sequenceDiagram
Alice->>John: Hello John, how are you?
loop Healthcheck
    John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
   ```mermaid
   sequenceDiagram
   Alice->>John: Hello John, how are you?
   loop Healthcheck
       John->>John: Fight against hypochondria
   end
   Note right of John: Rational thoughts!
   John-->>Alice: Great!
   John->>Bob: How about you?
   Bob-->>John: Jolly good!

   ```

3️⃣ Gantt

gantt
section Section
Completed :done,    des1, 2014-01-06,2014-01-08
Active        :active,  des2, 2014-01-07, 3d
Parallel 1   :         des3, after des1, 1d
Parallel 2   :         des4, after des1, 1d
Parallel 3   :         des5, after des3, 1d
Parallel 4   :         des6, after des4, 1d
   ```mermaid
   gantt
   section Section
   Completed :done,    des1, 2014-01-06,2014-01-08
   Active        :active,  des2, 2014-01-07, 3d
   Parallel 1   :         des3, after des1, 1d
   Parallel 2   :         des4, after des1, 1d
   Parallel 3   :         des5, after des3, 1d
   Parallel 4   :         des6, after des4, 1d

   ```

4️⃣ Class

classDiagram
Class01 <|-- AveryLongClass : Cool
<<interface>> Class01
Class09 --> C2 : Where am i?
Class09 --* C3
Class09 --|> Class07
Class07 : equals()
Class07 : Object[] elementData
Class01 : size()
Class01 : int chimp
Class01 : int gorilla
class Class10 {
 <<service>>
 int id
 size()
}
   ```mermaid
   classDiagram
   Class01 <|-- AveryLongClass : Cool
   <<interface>> Class01
   Class09 --> C2 : Where am i?
   Class09 --* C3
   Class09 --|> Class07
   Class07 : equals()
   Class07 : Object[] elementData
   Class01 : size()
   Class01 : int chimp
   Class01 : int gorilla
   class Class10 {
    <<service>>
    int id
    size()
   }

   ```

5️⃣ State

stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
   ```mermaid
   stateDiagram-v2
   [*] --> Still
   Still --> [*]
   Still --> Moving
   Moving --> Still
   Moving --> Crash
   Crash --> [*]

   ```

6️⃣ Pie

pie
"Dogs" : 386
"Cats" : 85
"Rats" : 15
   ```mermaid
   pie
   "Dogs" : 386
   "Cats" : 85
   "Rats" : 15

   ```

7️⃣ Journey

journey
  title My working day
  section Go to work
    Make tea: 5: Me
    Go upstairs: 3: Me
    Do work: 1: Me, Cat
  section Go home
    Go downstairs: 5: Me
    Sit down: 3: Me
   ```mermaid
   journey
    title My working day
    section Go to work
      Make tea: 5: Me
      Go upstairs: 3: Me
      Do work: 1: Me, Cat
    section Go home
      Go downstairs: 5: Me
      Sit down: 3: Me

   ```

8️⃣ ER

erDiagram
  CUSTOMER ||--o{ ORDER : places
  ORDER ||--|{ LINE-ITEM : contains
  CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
   ```mermaid
   erDiagram
     CUSTOMER ||--o{ ORDER : places
     ORDER ||--|{ LINE-ITEM : contains
     CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
   ```

Sample Blocs

THis is a note

my note

abstract

my note

info

info

Sample tip

tip

How to add plugins to the Docker image?

Import Stuff

Success

my note

Sample warning

This is so cool.

failure

my note

danger

danger

bug

bug

Sample example

example

Sample warning

warning

Sample wuote

quote

Tooltip

wanna a tooltip ? # (1)!
  1. Cedrick rock

    mkdocs serve
    

Icons

Material

HERE is the full list

Font Awesome

HTML

  • = fa-camera-retro
  • MARKDOWN

    HERE is the full list

    Opticons

    Sample

    Adding buttons

    In order to render a link as a button, suffix it with curly braces and add the .md-button class selector to it. The button will receive the selected [primary color] and [accent color] if active.

    Button
    [Subscribe to our newsletter](#){ .md-button }
    

    [Subscribe to our newsletter][demo]{ .md-button }

    [Subscribe to our newsletter][demo]{ .md-button .md-button--primary }


    Last update: 2023-07-04