Skip to content

Instantly share code, notes, and snippets.

View wtf-aot.sh
#!/usr/bin/env bash
set -o xtrace
# Install dependencies
mkdir -p deps
# .NET 7.0 SDK
if [ ! -d deps/dotnet ]; then
View 0. overview.md

.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
View Dockerfile
# 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
View ash.md

Ash

Literal Values

Numbers

1
2.71828
View hello.ash
# ______ ______ __ __
# /\ __ \ /\ ___\ /\ \_\ \
# \ \ __ \\ \___ \\ \ __ \
# \ \_\ \_\\/\_____\\ \_\ \_\
# \/_/\/_/ \/_____/ \/_/\/_/
# ─────────────────────────────────────────
# Literal Values
# ─────────────────────────────────────────
View statu.json
{
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",
View fern-documentation-example.md
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
View fettuccini.md

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
View bleeder-tabs.txt
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-----|
View status-ring.cpp
// require 'rubyserial'
// s = Serial.new('/dev/cu.wchusbserial1410')
// s.write('0')
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(60, 3, NEO_GRB + NEO_KHZ800);
void setup() {
Serial.begin(9600);