Note Design Sample

Code

C#

namespace Hermaia
{
    using System;

    /// <summary>
    /// Hersite class
    /// </summary>
    /// <typeparam name="T">The element type of the array</typeparam>
    public class Hersite<T>
    {
        public static readonly int MyNumber = 0;

        public void DoSomething()
        {
            var i = 10 * 10;
            var files = new List<string>();

            foreach (var file in files)
            {

            }

            if (true || false)
            {
                Console.WriteLine("DoSomething");
            }

            return;
        }
    }
}

C

#include <stdio.h>
#include "lib.h"

int main()
{
    if (0) {
        printf("Hello World!!");
    }
}

Python

from hermaia.web import server
import logging

def main():
    if isinstance(data, dict):
        print("Hello World")

TypeScript

let i: number = 10;
const s: string = "aaa";
var b: boolean = true;

function func(callback: () => void) {
    const f = () => {

    };
}

HTML

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
  <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" crossorigin="anonymous">
  <title>Phaier Assets</title>
  <link href="./css/highlight.css" rel="stylesheet">
  <style>
    body {
      padding-top: 50px;
      overflow-y: scroll;
    }
  </style>
</head>
<body>
  <h1>Heading 1</h1>
  <p>
    This is <code>p</code> tag.
  </p>
  <script src="https://code.jquery.com/jquery-2.2.4.min.js" crossorigin="anonymous"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" crossorigin="anonymous"></script>
</body>
</html>

Haskell

factorial :: Int -> Int
factorial 0 = 1
factorial n = n * factorial (n - 1)

MathJax

\begin{equation*}
    E = mc^2
\end{equation*}