Markdown

markdown syntax

Utili

doppio spazio → a capo
corsivo
grassetto
piccolo

pedice e apice

Elenco:

  • item 1
  • item 2
  • item 3

Commenti

(…sono invisibili, giustamente)

Markdown flavour

Shell: console, shell
Bash: bash, sh, zsh
Powershell: powershell, ps
Dos: dos, bat, cmd

  1. Console
    1
    
    ~$ ping google.it
    
  2. bat
    1
    2
    3
    
    cd \
    copy a b
    ping 192.168.0.1
    
  3. python
    1
    2
    3
    4
    
    import numpy as np
    def test_function(x, y):
     z = np.sum(x,y)
     return z
    
  4. r
    1
    2
    3
    4
    5
    
    library(tidyverse)
    df <- read_csv("some_file.csv")
    mod1 <- lm(y~x, data=df)
    plot(df)
    abline(mod1, lty=2, col=2, lwd=2)
    
  5. HTML (alternative way)
<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <title>Hello!</title>
    </head>

    <body>
        <h1>Hello World!</h1>
        <p>This is a simple paragraph.</p>
    </body>

</html>

Markdown/HTML

  1. Escape coding (non riesco a fare l’escape sull’escape)
    raw

  2. Immagini
    Con qualche parametro HTML
    1
    2
    3
    4
    5
    
    <img src="https://www.albgri.com/assets/images/immagine.png" 
    alt="testo immagine"
    align="center"
    height="10"
    width="10">
    

    Kramdown (1, 2)

    1
    
    ![alt](https://www.albgri.com/assets/images/immagine.png){:height="10px" width="10px"}
    

    Semplice HTML

    1
    
    <img src="/assets/images/immagine.png" width="400">
    

    Semplice Markdown

    1
    
    ![png](/assets/images/immagine.png)
    
  3. Math LaTeX (elenco; riconosce disegno; formula online)
    \(z=x+y\)

  4. LaTeX mathjax package newcommand
    $$\require{color}
    \newcommand{\textwithColor}[2]{\color{#1}{\text{#2}}} 
    \textwithColor{red}{testo rosso}$$
    
  5. Mouseover text
    Testo sopra il testo: porta il mouse qui
    1
    
    <span title="I am hovering over the text">This is the text I want to have a mousover</span>
    

Spoiler

Pandora Dio è morto

Youtube