Skip to content

Instantly share code, notes, and snippets.

@aevitas
aevitas / meditations.md
Last active April 18, 2023 22:11
Marcus Aurelius' Meditations

Meditations - Book 1

I. Of my grandfather Verus I have learned to be gentle and meek, and to refrain from all anger and passion. From the fame and memory of him that begot me I have learned both shamefastness and manlike behaviour. Of my mother I have learned to be religious, and bountiful; and to forbear, not only to do, but to intend any evil; to content myself with a spare diet, and to fly all such excess as is incidental to great wealth. Of my great-grandfather, both to frequent public schools and auditories, and to get me good and able teachers at home; and that I ought not to think much, if upon such occasions, I were at excessive charges.

public static void PartOneAlt()
{
int numTicks = 0;
List<int> reads = new();
Dictionary<int, int> ops = new();
for (int i = 0; i < Input.Length; i++)
{
var split = Input[i].Split(' ');
var op = split[0];
var ron = context.Employees
.TemporalAsOf(beforeWeFiredRon)
.Single(e => e.EmployeeId == ron.EmployeeId);
context.Employees.Add(ron);
context.SaveChangesAsync();
context.ShippingAddress
.TemporalAsOf(order.TimeStamp)
.Single(a => a.CustomerId == order.CustomerId);
modelBuilder
.Entity<ShippingAddress>()
.ToTable(
"ShippingAddresses",
b => b.IsTemporal(
b =>
{
b.HasPeriodStart("ValidFrom");
b.HasPeriodEnd("ValidTo");
b.UseHistoryTable("ShippingAddressHistory");
// Generated by Fuzzlyn v1.5 on 2021-10-23 22:29:22
// Run on X64 Windows
// Seed: 3237180287467777327
// Reduced from 167.9 KiB to 0.2 KiB in 00:01:04
// Debug: Outputs 1
// Release: Outputs -1
public class Program
{
public static int s_8;
public static void Main()
namespace CSharpByExample
{
public class Program
{
public static void Main(string[] args)
{
string utensil = Console.ReadLine();
// Default switch statement
switch (utensil)
using System;
namespace CSharpByExample
{
public class Program
{
public static void Main(string[] args)
{
Console.Write("Please enter your name: ");
using System;
namespace CSharpByExample
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
labels:
name: web
spec:
replicas: 1
selector: