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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ron = context.Employees | |
.TemporalAsOf(beforeWeFiredRon) | |
.Single(e => e.EmployeeId == ron.EmployeeId); | |
context.Employees.Add(ron); | |
context.SaveChangesAsync(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
context.ShippingAddress | |
.TemporalAsOf(order.TimeStamp) | |
.Single(a => a.CustomerId == order.CustomerId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modelBuilder | |
.Entity<ShippingAddress>() | |
.ToTable( | |
"ShippingAddresses", | |
b => b.IsTemporal( | |
b => | |
{ | |
b.HasPeriodStart("ValidFrom"); | |
b.HasPeriodEnd("ValidTo"); | |
b.UseHistoryTable("ShippingAddressHistory"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CSharpByExample | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
string utensil = Console.ReadLine(); | |
// Default switch statement | |
switch (utensil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace CSharpByExample | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.Write("Please enter your name: "); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace CSharpByExample | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello, world!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: web | |
labels: | |
name: web | |
spec: | |
replicas: 1 | |
selector: |
NewerOlder