Testing Post
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
this is a sample post in which i am testing how to use this for blogging.
Text formatting
bold text, italic text, strikethrough, bold italic, and inline code.
a link to my portfolio and an autolink https://github.com.
Lists
this is a list
- one
- two
- three
- nested one
- nested two
an ordered list
- first
- second
- third
this is a checklist
- done
- left
Blockquote
this is a blockquote. it can span multiple lines and should be styled distinctly from regular text.
nested blockquote.
Table
| language | typed | year |
|---|---|---|
| rust | yes | 2010 |
| python | no | 1991 |
| go | yes | 2009 |
Horizontal rule
Image
a sample image with a caption
Code blocks
#include <bits/stdc++.h>
using namespace std;
int partition(vector<int> &v, int low, int high) {
// choosing the pivot to be the first element of the array
// we have to place the pivot in its correct position i.e. we have to
// partition the array such that in such a way that [low] pivot [high]
int pivot = v[low];
int i = low + 1, j = high;
while (i < j) {
while (i <= high && v[i] <= pivot) {
i++;
};
while (j >= low && v[j] > pivot) {
j--;
};
if (i < j)
swap(v[i], v[j]);
}
swap(v[j], v[low]);
return j;
}
void quicksort(vector<int> &v, int low, int high) {
if (low >= high)
return;
int q = partition(v, low, high);
quicksort(v, low, q - 1);
quicksort(v, q + 1, high);
}
int main() {
vector<int> v = {1, 2, 3423, 4232, 2, -1, 23, 32, 1, 21, 3, -2, 32};
quicksort(v, 0, v.size() - 1);
for (auto &element : v)
cout << element << " ";
cout << endl;
return 0;
}
def fib(n):
a, b = 0, 1
for _ in range(n):
a, b = b, a + b
return a
print([fib(i) for i in range(10)])
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
const greet = (name) => `hello, ${name}!`;
console.log(greet("world"));
kramdown:
syntax_highlighter: rouge
syntax_highlighter_opts:
block:
line_numbers: true
#!/usr/bin/env bash
for f in _posts/*.md; do
echo "found: $f"
done
inline code like _config.yml or bundle exec jekyll serve should look right too.
Footnote
here’s a sentence with a footnote.1
-
this is the footnote content. ↩