This is a demo post to show you how to write blog posts with markdown. I strongly encourage you to take 5 minutes to learn how to write in markdown - it’ll teach you how to transform regular text into bold/italics/headings/tables/etc.
Here is some bold text
Here is a secondary heading
Here’s a useless table:
Number | Next number | Previous number |
---|---|---|
Five | Six | Four |
Ten | Eleven | Nine |
Seven | Eight | Six |
Two | Three | One |
How about a yummy crepe?
It can also be centered!
Here’s a code chunk:
var foo = function(x) {
return(x + 5);
}
foo(3)
And here is the same code with syntax highlighting:
var foo = function(x) {
return(x + 5);
}
foo(3)
def maximumProfit(prices):
profit = 0
max_future = prices[-1]
max_future_price = [0] * len(prices)
for i in range(len(prices)-2, -1, -1):
max_future = max(max_future, prices[i])
max_future_price[i] = max_future
profit = 0
for i in range(len(prices)):
if max_future_price[i] > prices[i]:
profit += max_future_price[i] - prices[i]
return profit
And here is the same code yet again but with line numbers:
1
2
3
4
var foo = function(x) {
return(x + 5);
}
foo(3)
Boxes
You can add notification, warning and error boxes like this:
Math
The quadratic formula states that for an equation in the form \( ax^2 + bx + c = 0 \), the solution is:
$$ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$
You can also write inline equations like this: The discriminant \( b^2 - 4ac \) determines the number of solutions.
Notification
Note: This is a notification box.
Warning
Warning: This is a warning box.
Error
Error: This is an error box.