$$ e = \sum_{n=0}^\infty \frac{1}{n!} $$

didnt find it

This is a warning.

This is a note which is not being built as markdown (one with %% around instead of <> doesn’t work for some reason)

UPDATE: it is now being built as markdown because of an argument | markdownify.

didnt find it

UPDATE: But this removes the ability to have more a shortcode in a shortcode.

didnt find it

A useful tip!

didnt find it

Beware this.

An extract from Game of Life in Python code

@cuda.jit
def update_board(gridInput:np.ndarray, gridOutput:np.ndarray):
    x,y = cuda.grid(2)
    if x < gridInput.shape[0] and y < gridInput.shape[1]:
        z = 0
        val = 0
        # go through all the neigbouring cells and add 1 for each life
        while z < VECTORS.shape[0]:
            xZ = x + VECTORS[z,0]
            yZ = y + VECTORS[z,1]
            val += gridInput[xZ,yZ]
            z+=1
        # different scenarios for cases with and without life
        if gridInput[x,y]:
            # will it survive?
            if val >= COUNT_TO_LIVE and val < COUNT_TO_OVERCROWD:
                gridOutput[x,y] = True
            else:
                gridOutput[x,y] = False
        else:
            # will it revive
            if val == COUNT_TO_REVIVE:
                gridOutput[x,y] = True
            else:
                gridOutput[x,y] = False

Math blocks

Theorem
(What is true)

A statement is true when it is true.

Proof

$\square$