Skip to content

Instantly share code, notes, and snippets.

View willl's full-sized avatar
:octocat:

Will Luu willl

:octocat:
View GitHub Profile
@Joao-Peterson
Joao-Peterson / gmk67-manual.md
Last active March 12, 2026 01:14
GMK67 manual (English)
@davidfowl
davidfowl / MinimalAPIs.md
Last active March 13, 2026 09:00
Minimal APIs at a glance
@CalvinAllen
CalvinAllen / dotnet-framework-build-action.yml
Last active June 6, 2025 03:18
A GitHub Action to build a .NET Framework Web Application and Deploy it to Azure
name: EZRep Build
on:
push:
branches: master
jobs:
build:
runs-on: windows-latest
@anthony-curtis
anthony-curtis / localtestIISExpress.md
Last active August 4, 2024 11:40
How to Configure localtest.me subdomain with IIS Express

How to Configure localtest.me subdomain with IIS Express

Want to host a local dev site from a custom subdomain using the localtest.me approach? Follow these steps on your Windows machine to get up and running.

  1. Locate your ApplicationHost.config file in \Users\YourName\Documents\IISExpress\config

  2. Make a copy in case you need to revert changes

  3. Open the file in your favorite text editor and scroll to <sites> which will be around line 155.

  4. Add a new <site> element below the default example. Use the code below as a template:

Using P4Merge with Visual Studio 2015/2017

The diff tool integrated with Visual Studio has been improving with every version. I still prefer dedicated diff/merge tools for the job, however, and P4Merge is my favorite. This small guide describes how to properly integrate P4Merge with Visual Studio 2015.

Note that this only applies when using TFS. If you use git, Visual Studio will use the diff/merge tools configured with git.

Installing P4Merge

The easiest method of installing P4Merge on your computer is with Chocolatey:

@davidfowl
davidfowl / Example1.cs
Last active February 11, 2026 04:57
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active March 6, 2026 14:36
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@DamianEdwards
DamianEdwards / Default.aspx
Created July 17, 2013 04:00
Simple way to do async UI loading in ASP.NET Web Forms with standard controls
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
uint viewIndex = 0;
uint.TryParse(Request.QueryString["view"], out viewIndex);
views.ActiveViewIndex = (int)(viewIndex < views.Views.Count ? viewIndex : 0);
namespace YourNamespace
{
/// <summary>
/// Uses the Name value of the <see cref="ColumnAttribute"/> specified to determine
/// the association between the name of the column in the query results and the member to
/// which it will be extracted. If no column mapping is present all members are mapped as
/// usual.
/// </summary>
/// <typeparam name="T">The type of the object that this association between the mapper applies to.</typeparam>
public class ColumnAttributeTypeMapper<T> : FallbackTypeMapper