1. Markdown to HTML Convertor

    For users

    The convertor currently supports

    • #, ##, ... -> <h1>, <h2>, ...
    • --- -> <hr>
    • Unordered/ordered list
    • ![](), <img> -> <img>
    • []() -> <a>
    • Plain text
    • Code blocks (``` ```)
    • Inline code blocks (``)

    How to use (in Windows)

    1. Download and unzip markdown2html-x.x.x.zip from this page.
    2. Open markdown2html.exe and follow the instruction:
    3. Input Markdown file path: you need …
    Read more
  2. Tank War Game with CLI

    Github Repo

    The repo is temporarily set to private to prevent potential violation of the Honor Code.

    A simple tank war game with CLI that supports PVP, PVE and DEMO.

    Compile the program

    To compile it, you need to install:

    • g++, a cpp compiler. Remember to add it to PATH …
    Read more
  3. C and C++ Learning Notes

    Deep Copy & Copy Constructor

    Default Copy Constructor

    The compiler also creates a copy constructor if we don’t write our own copy constructor. Unlike the default constructor, the body of the copy constructor created by the compiler is not empty, it copies all data members of the passed object to …

    Read more
  4. Math is Hard

    Monoid

    monoid=magma+associativity+identity

    Magma

    A magma is a set M matched with an operation • that sends any two elements a, b ∈ M to another element, a • b ∈ M, i.e. \((M,\cdot)\) is a magma, if

    $$ \forall a,b \in M, a \cdot b \in M $$

    Determinant of …

    Read more
  5. Vocabulary

    Date: Mon 16 May 2022
    Updated: Mon 16 May 2022

    In 6. Misc.

    Tags: Notes

    A

    antisymmetric matrix: \(A^T=-A\)

    angular frequency: aka, angular velocity, radial frequency and circular frequency. Denoted as \(\omega\)

    B

    buoyancy: 浮力。

    C

    curvature: 曲率。

    D

    directly proportional to: 成正比。

    displacement: 位移。注意与distance(路程)区分。

    distance: 路程。注意 …

    Read more
  6. Tech Life Hacks

    Port Forwarding Using SSH

    Sometimes we are faced with the following situation:

    graph LR
      A(Computer A)-->|SSH|B(Server A 192.168.1.3)
      B-->|has access via 192.168.1.2:80|C(Server B 192.168.1.2)
      A-->|does not have access|C
    

    Computer A is …

    Read more

Social