Skip to content

Instantly share code, notes, and snippets.

@philchuang
philchuang / Example.cs
Created March 28, 2012 18:54
Simple object conversion extension method
public static class Program
{
public static void Main (params String[] args)
{
// setup
var dict = new Dictionary<int, String> ();
dict[1] = "The Quick Brown";
dict[2] = "Fox Jumped";
dict[3] = "Over The";
dict[4] = "Lazy Dogs";
@philchuang
philchuang / DependencyProperty.snippet
Created August 6, 2013 20:39
Visual Studio snippets for * quickly creating a MVVM property that raises INotifyPropertyChanged.PropertyChanged * quickly creating a MVVM DependencyProperty And related static methods for determining a property name via reflection at runtime
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets mlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>MVVM Dependency Property</Title>
<Author>Phil Chuang</Author>
<Description>A snippet for generating a Dependency Property</Description>
@philchuang
philchuang / keybase.md
Created January 27, 2021 00:50
keybase.md

Keybase proof

I hereby claim:

  • I am philchuang on github.
  • I am philchuang (https://keybase.io/philchuang) on keybase.
  • I have a public key ASAulAIfwV2Mc-SSkiiMP_-E3w7_vREh0nwVrmN2_FFG9wo

To claim this, I am signing this object:

@philchuang
philchuang / phil-dev-vm.boxstarter.package.ps1
Last active December 17, 2022 22:08
Personal dev boxstarter scripts
######## Phil's dev VM boxstarter script ########
###############
#### NOTES ####
###############
## After a restart/reconnect, even though it shows the login screen, boxstarter is still working
### NOTES when kicking off remotely from host to VM, fails on Configuring CredSSP settings
## check http://blogs.technet.com/b/heyscriptingguy/archive/2012/12/30/understanding-powershell-remote-management.aspx