Skip to content

grantwinney/BlogCodeSamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy