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
    
  
  
    
  | # lifted from coreclr | |
| function(add_precompiled_header header cppFile targetSources) | |
| if(MSVC) | |
| set(precompiledBinary "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/stdafx.pch") | |
| set_source_files_properties(${cppFile} | |
| PROPERTIES COMPILE_FLAGS "/Yc\"${header}\" /Fp\"${precompiledBinary}\"" | |
| OBJECT_OUTPUTS "${precompiledBinary}") | |
| set_source_files_properties(${${targetSources}} | |
| PROPERTIES COMPILE_FLAGS "/Yu\"${header}\" /Fp\"${precompiledBinary}\"" | 
  
    
      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
    
  
  
    
  | template <typename T, typename = std::void_t<>> | |
| struct empty_instance | |
| { | |
| static T get() { return T{}; } | |
| }; | |
| template <typename T> | |
| struct empty_instance<T, std::void_t<decltype(T{ nullptr })>> | |
| { | 
  
    
      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
    
  
  
    
  | @echo off | |
| SETLOCAL | |
| rem https://stackoverflow.com/a/45070967 | |
| goto :init | |
| :header | |
| echo %__NAME% v%__VERSION% | |
| echo This is a sample batch file template, | |
| echo providing command-line arguments and flags. | 
  
    
      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
    
  
  
    
  | def timed_op(fun): | |
| def sync_wrapper(*args, **kwds): | |
| print("Starting", fun.__name__) | |
| start = time.perf_counter() | |
| ret = fun(*args, **kwds) | |
| end = time.perf_counter() | |
| print(fun.__name__, "took", end - start, "({0})".format(ret)) | 
  
    
      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
    
  
  
    
  | [CmdletBinding()] | |
| Param( | |
| [Parameter(ValueFromPipelineByPropertyName)] $FullName, | |
| [string] $description, | |
| [switch] $public, | |
| [switch] $launchBrowser | |
| ) | |
| begin | 
  
    
      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
    
  
  
    
  | { | |
| "version": "2.7.8", | |
| "url": "https://github.com/IronLanguages/ironpython2/releases/download/ipy-2.7.8/IronPython.2.7.8.zip", | |
| "bin": [ | |
| "net45\\ipy.exe", | |
| "net45\\ipy32.exe", | |
| "net45\\ipyc.exe", | |
| "net45\\ipyw.exe", | |
| "net45\\ipyw32.exe" | |
| ] | 
  
    
      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
    
  
  
    
  | function(TARGET_CONFIG_MSVC_PCH target pch_cpp pch_header) | |
| set(pch_output_file "\"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pch\"") | |
| get_target_property(sources ${target} SOURCES) | |
| foreach(file ${sources}) | |
| if (${file} STREQUAL ${pch_cpp}) | |
| set_source_files_properties(${file} | |
| PROPERTIES | |
| COMPILE_FLAGS " /Yc${pch_header} /Fp${pch_output_file}" | 
  
    
      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
    
  
  
    
  | # enhancement to https://www.microsoft.com/net/learn/get-started/linux/debian9 | |
| # debian WSL appears to need --no-check-certificate for wget from packages.microsoft.com | |
| wget --no-check-certificate -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg | |
| sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ | |
| wget --no-check-certificate -q https://packages.microsoft.com/config/debian/9/prod.list | |
| sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list | |
| # need apt-transport-https installed | |
| sudo apt-get update | 
  
    
      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
    
  
  
    
  | { | |
| "version": "3.6.5", | |
| "url": "https://github.com/TextAnalysisTool/Releases/raw/master/TextAnalysisTool.NET.zip", | |
| "bin": "TextAnalysisTool.NET.exe" | |
| } | 
  
    
      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
    
  
  
    
  | function Set-ConsoleColors { | |
| param ([string]$theme = "campbell") | |
| # Following source adapted from https://github.com/Microsoft/console/tree/master/tools/ColorTool | |
| add-type -TypeDefinition @' | |
| using System; | |
| using System.Runtime.InteropServices; | |
| namespace ColorTool | |
| { |