Codeblocks in markdown make it very easy for tech people to copy, paste, share code. A good Cloud engineer uses Codeblocks whenever possible.
Because it allows others to copy and paste their code to replicate or research issues.
In order to create codeblocks in markdown, you need three backticks (`) Not to be confused with quotation.
# Define the Person class
class Person
attr_accessor :name
def initialize(name)
@name = name
end
def greet
"Hello, #{@name}! Nice to meet you."
end
end
# Create an instance of the Person class
john = Person.new("John")
# Print out a greeting
puts john.greet # Output: Hello, John! Nice to meet you.
- When you can you should attempt to apply syntax highlighting to your codeblocks.
# Define the Person class
class Person
attr_accessor :name
def initialize(name)
@name = name
end
def greet
"Hello, #{@name}! Nice to meet you."
end
end
# Create an instance of the Person class
john = Person.new("John")
# Print out a greeting
puts john.greet # Output: Hello, John! Nice to meet you.
- Make note of where that learning never ends.
- It is a constant challenge to develop yourself and strive for excellence.
- You are the master of your destiny.
![](https://private-user-images.githubusercontent.com/24904136/269561146-dfab5c3c-ae18-4e63-a1a6-51e1f0bcd31f.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ5Nzk2MjcsIm5iZiI6MTcyNDk3OTMyNywicGF0aCI6Ii8yNDkwNDEzNi8yNjk1NjExNDYtZGZhYjVjM2MtYWUxOC00ZTYzLWExYTYtNTFlMWYwYmNkMzFmLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMwVDAwNTUyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThkZWRlM2UwMzQzZjlkNDBiYjIxZGJkNWM4Yjk5NDU3ZGNjZWNmOWYyM2Y2YmNkODQwMmE3MzU4YWJiNGU3MDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MKkV8DSGokruyHjajpEn1ZGS18Tfct4qrm1jwxTFnqs)
Good cloud engineers use code blocks for both Code and Errors that appear in the console. Here is an example of y=using a codeblock that appweras in bash.
RuntimeError: Division by zero error!
from (irb):2:in `divide'
from (irb):5
from /usr/bin/irb:11:in `<main>'
Here is an example of y=using a codeblock that appears in bash.
A screenshot is when you capture part of your screen from your laptop, desktop or phone.
This is not to be confused with a photo with your phone.
DON'T DO THIS
Github extends Markdown to have a list where you can check off items. [1]
- Finish Step 1
- [] Finish Step 2
- Finish Step 3
Github Flavoured Markdown (GFM) supports emoji shortcodes. Here are some examples:
Name | Shortcode | Emoji |
---|---|---|
Cloud | :cloud: |
☁️ |
Alarm Clock | :alarm_clock: |
⏰ |
Cloud with Loghtning | :cloud_with_lightning: |
🌩️ |
You can use the following markdown format to create tables.
| Name | Shortcode | Emoji |
| --- | --- | --- |
| Cloud | `:cloud:`| :cloud:|
| Alarm Clock | `:alarm_clock:`| :alarm_clock:|
| Cloud with Loghtning | ` :cloud_with_lightning:`| :cloud_with_lightning:|
Github extends the functionality of Markdown tables to provide more alignment and table cell formatting options. [2]