Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 5.94 KB

README.md

File metadata and controls

56 lines (36 loc) · 5.94 KB

Code Samples - Grant's Blog

This repository contains some code samples from my blog posts. I sometimes upload code to separate repos (like for C# / .NET and WinForms), or to Gist or JsFiddle for shorter snippets.

The list below has a link to each blog post, followed by the relevant code for that post.

APIs

  • Discover where the ISS is, where it will be, and who's on it with the ISS Notify API (blog, code)

Dev Tools

  • Can I compare files using VS Code? (blog, code)
  • Cool markdown tricks for GitHub (blog, code)
  • Why doesn't VS 2022 show my WinForms UI at design time? (blog, code)
  • What is a Git alias? (blog, code)

Frameworks

ASP.NET Core

  • Similar endpoints, swagger pages, and a DevOps fail (blog, code)

WinForms

  • Passing Data Between Forms in WinForms (blog, code)

WPF

  • Filtering a ListView in WPF Using a TextBox and CollectionViewSource (blog, code)

Languages

C#

  • An Extension Method to Pass a Column Name to SqlDataReader.GetFieldValue (blog, code)
  • How do I convert my code from C# to VB.NET (or from VB.NET to C#)? (blog, code)
  • How to generate and verify TOTP 2FA codes (in C#) (blog, code)
  • Obsolete Attribute on a Class is Ignored When an Interface is Involved (blog, code)
  • Using an application config file with a .NET Standard app and NUnit 3 (blog, code)
  • What is mocking a dependency? (blog, code)
  • What is the NUnit constraint model and should you use it? (blog, code)

Erlang

  • Calculate Easter and other holidays in Erlang (blog, code)
  • Keep your EUnit teardown logic as simple as possible! (blog, code)
  • Modify a config file in Erlang (blog, code)

Misc

  • Creating Your First Chrome Extension (blog, code)
  • Running Windows XP in VirtualBox (blog, code)
  • Tweet random posts from a Ghost blog using AWS Lambda (blog, code)
  • Tweet random blog posts from an RSS feed using AWS Lambda (blog, code)
  • Where should I store application data in Windows? (blog, code)