Skip to content

Instantly share code, notes, and snippets.

View dlwiii's full-sized avatar

Daniel Williams dlwiii

View GitHub Profile
@dlwiii
dlwiii / Visual Studio Keyboard Shortcuts.md
Created January 7, 2024 15:52
Visual Studio Keyboard Shortcuts

Ones I use Commonly

Debugging

F5 - Compile and Run F6 - Compile

Editing

F12 - go to definition of variable/method/class F3 - Find

Dungeon Crawl Stone Soup version 0.29.1-15-g9cfb28693d (webtiles) character file.
Game seed: 14578181218921252681
1648118 dlwiii the Conqueror (level 27, 228/228 HPs)
Began as a Djinni Conjurer on Apr 27, 2023.
Was the Champion of Ashenzari.
Escaped with the Orb
... and 3 runes on Apr 30, 2023!
@dlwiii
dlwiii / 2022-12-31 4th dcss win
Created December 31, 2022 21:21
2022-12-31 4th dcss win
Dungeon Crawl Stone Soup version 0.29.1-2-gbd0b4ee654 (webtiles) character file.
Game seed: 7541497896260642191
1274913 dlwiii the Merry Frog (level 27, 216/216 HPs)
Began as a Barachi Hunter on Dec 29, 2022.
Was a High Priest of Hepliaklqana.
Escaped with the Orb
... and 3 runes on Dec 31, 2022!
@dlwiii
dlwiii / choco_install.ps1
Created March 30, 2022 15:40
Chocolatey install script
# Install script for Dwilliams
# btw - need this on a new machine first
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
# Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
@dlwiii
dlwiii / gist:e96800f14eb89e3c7e3e
Created July 26, 2014 20:01
Be careful with Moq'ing out lists!
public class Thing
{
public virtual string DoThing(IList<string> args) { return "ONE"; }
}
[Fact]
[Trait("00 Misc", "Reality Check")]
public void Test()
{
@dlwiii
dlwiii / gist:7946777
Last active December 31, 2015 06:19
Test Harness wrapper. I use this all the time to give a console application the generic ability to run specific methods in specific classes with or without arguments. It turns my console app into a Swiss army knife!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Dimension.Connectors.Procore.Test
{
public class TestMain
@dlwiii
dlwiii / gist:7516583
Created November 17, 2013 18:39
My favorite log4net config file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<!-- always have a trace appender for the debugger -->
<appender name="TraceAppender" type="log4net.Appender.TraceAppender" >