Skip to content

Instantly share code, notes, and snippets.

View underscoreHao's full-sized avatar

Pavel Danov underscoreHao

View GitHub Profile
@underscoreHao
underscoreHao / part1.cs
Last active December 2, 2021 19:55
AOC - 2021 - Day 2 in C#
var input = File.ReadLines(@"G:\Code\Lambda\input")
.Select(x => x.Split(" "))
.Select(x => Tuple.Create(x[0], int.Parse(x[1])))
.ToList();
int horizontal = 0;
int depth = 0;
Dictionary<string, Action<int>> funcs = new();
funcs.Add("forward", foo => horizontal += foo);
funcs.Add("up", foo => depth -= foo);
@underscoreHao
underscoreHao / rsh-pleco-flash-cards-fixed
Last active June 12, 2023 16:37
This is a Pleco flash card list containing every character in both tomes of Remembering Simplified Hanzi by James Heisig and Timothy W. Richardson
// Remembering Simplified Hanzi/RSH1_01
一[一] yi1 [1] one
二[二] er4 [2] two
三[三] san1 [3] three
四[四] si4 [4] four
五[五] wu3 [5] five
六[六] liu4 [6] six
七[七] qi1 [7] seven
八[八] ba1 [8] eight
九[九] jiu3 [9] nine
@underscoreHao
underscoreHao / cloudSettings
Last active June 22, 2021 08:38
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-06-22T08:38:39.802Z","extensionVersion":"v3.4.3"}