This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public function DoSomething() | |
| { | |
| try | |
| { | |
| Stuff(); | |
| } | |
| catch (IScrewedUpException ex) | |
| { | |
| } | |
| catch (WheresMyBeerException ex) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | private System.Collections.ObjectModel.ObservableCollection<MatchResultLineItem> _matchResults; | |
| public System.Collections.ObjectModel.ObservableCollection<MatchResultLineItem> MatchResults | |
| { | |
| get { return _matchResults; } | |
| set | |
| { | |
| if (Object.Equals(_matchResults, value) == false) | |
| { | |
| _matchResults = value; | |
| OnPropertyChanged(() => MatchResults); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Allow reboots | |
| $Boxstarter.RebootOk=$true | |
| $Boxstarter.NoPassword=$false | |
| $Boxstarter.AutoLogin=$true | |
| # Basic setup | |
| Update-ExecutionPolicy Unrestricted | |
| Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
| Enable-RemoteDesktop | |
| Disable-InternetExplorerESC | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #The user/password isn't applied when the resource is written like this: | |
| iis_pool 'Creating the AppPool' do | |
| pool_name "MyAppPool" | |
| runtime_version "4.0" | |
| pipeline_mode :Integrated | |
| pool_username "SomeUser" | |
| pool_password "SomePW" | |
| action [:add] | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| Author: Matt Withum | |
| Manages the page title, including swapping the title text. | |
| Notes: | |
| */ | |
| ;(function ($) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Type type = typeof(Foo); | |
| foreach ( var property in type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)) { | |
| var getMethod = property.GetGetMethod(false); | |
| if (getMethod.GetBaseDefinition() == getMethod) { | |
| Console.WriteLine(getMethod); | |
| } | |
| } |