Skip to content

Instantly share code, notes, and snippets.

@kkestell
kkestell / md.c
Last active January 31, 2024 12:17
#include "utf8.h"
#include <stdio.h>
#include <stdlib.h>
utf8_int8_t *ib, *it, *ob;
size_t len = 0, cap = 0;
void parse_text();
void parse_heading();
void parse_unordered_list();
#!/usr/bin/env bash
set -o xtrace
# Install dependencies
mkdir -p deps
# .NET 7.0 SDK
if [ ! -d deps/dotnet ]; then

.NET 7 AoT Compilation Steps

Overview

.cs -> csc -> .ilexe -> ilc -> .o -> clang -> native binary
@kkestell
kkestell / Dockerfile
Last active October 17, 2019 01:05
.NET Core 3.0 + Alpine 3.9 + PublishSingleFile
# BUILD
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-alpine AS build
WORKDIR /
COPY App/. ./app/
WORKDIR /app
RUN dotnet publish -c Release -r linux-musl-x64 -o out /p:PublishSingleFile=true

Ash

Literal Values

Numbers

1
2.71828
# ______ ______ __ __
# /\ __ \ /\ ___\ /\ \_\ \
# \ \ __ \\ \___ \\ \ __ \
# \ \_\ \_\\/\_____\\ \_\ \_\
# \/_/\/_/ \/_____/ \/_/\/_/
# ─────────────────────────────────────────
# Literal Values
# ─────────────────────────────────────────
{
projects: [
{
name: "Origin Meals",
start_date: "2019-01-01",
end_date: "2019-10-01",
people: [
{
name: "Casey Jacobson",
avatar_url: "https://example.com/avatar.jpg",
post :create do
  doc %(Get a summary of an individual Automation workflow’s settings and
content. The `trigger_settings` object returns information for the first email in
the workflow.

You can use Markdown in these doc strings.

* Foo
* Bar

Ingredients

  • 1 lb fettuccine
  • 1 cup heavy cream
  • 1/2 cup unsalted butter
  • 3-4 tablespoons flour
  • 1/4 cup grated parmesan
  • Grilled and sliced chicken breast
  • Broccoli or asparagus
  • Flat leaf parsley for garnish
Tuning: eBGDAE
capo 2nd fret. (all chords relative to capo)
Intro (played around an open A chord)
e|--------------------------|
B|--0-----------0-----------|
G|--------2-----------2-----|
D|-----2--2--------2--2-----|