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",
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export PATH=$PATH:/usr/lib/postgresql/8.4/bin/
export PGDATA=/usr/local/pgsql/data
@kkestell
kkestell / bounce.py
Created November 10, 2011 15:57
Rabbyt, Pymunk, and Pyglet
import rabbyt
import pygame
import pymunk
from pygame.locals import QUIT
from pyglet.gl import *
pygame.init()
pygame.display.set_mode((640,480), pygame.OPENGL | pygame.DOUBLEBUF)
rabbyt.set_viewport((640,480))
rabbyt.set_default_attribs()
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