Blog Checklist

Using this post to check if I have coded up everything I want in this blog.


  • all level headings
  • bold, italics, and strikethrough
  • links
  • footnotes
  • images and captions
  • quotes
  • code blocks and syntax highlighting
  • $\TeX$
  • utterances comments
  • RSS feed for both /writing and /reading
  • sitemap.xml
  • lichess, twitter, and youtube embeds
  • github gists
  • jekyll-scholar
  • site-wide search box
  • categories

Level 1 Heading

Level 2 Heading

Level 3 Heading

Level 4 Heading

This is bold

This is italics

This is strikethrough

This is a link to /reading

This line has a footnote1

Figure 1. this is an image and caption.

this a quote

— this is the quote citation

this is a codeblock, with syntax highlighting


/*
 * Name: qsort.c
 * Description: C implementation of the quicksort algorithm
 * Author: kyscg
 */

#include <stdio.h>

#define N 10

int split(int a[], int low, int high);
void quicksort(int a[], int low, int high);

int main(void)
{
    int a[N], i;

    printf("Enter %d numbers to be sorted: ", N);
    for (i = 0; i < N; i++)
        scanf("%d", &a[i]);

    quicksort(a, 0, N - 1);

    printf("In sorted order: ");
    for (i = 0; i < N; i++)
        printf("%d ", a[i]);

    printf("\n");
    return 0;
}

int split(int a[], int low, int high)
{
    int part_element = a[low];

    for (;;)
    {
        while (low < high && part_element <= a[high])
            high--;
        if (low >= high)
            break;
        a[low++] = a[high];

        while (low < high && a[low] <= part_element)
            low++;
        if (low >= high)
            break;
        a[high--] = a[low];
    }

    a[high] = part_element;
    return high;
}

void quicksort(int a[], int low, int high)
{
    int middle;

    if (low >= high)
        return;

    middle = split(a, low, high);
    quicksort(a, low, middle - 1);
    quicksort(a, middle + 1, high);
}

this is a $\TeX$ command:

\[2+2=4\tag{$\star$}\]

this is a lichess embed:

this is a youtube embed:

this is a twitter embed:

this is a github gist embed:


  1. which redirects back to the line