Skip to content

Instantly share code, notes, and snippets.

View ScottHutchinson's full-sized avatar

Scott Hutchinson ScottHutchinson

  • ICI Services
  • Westlake Village, California
View GitHub Profile
Paket version 5.174.5
The last restore is still up to date. Nothing left to do.
Performance:
- Runtime: 115 milliseconds
Building project with version: LocalBuild
Shortened DependencyGraph for Target Watch:
<== Watch
<== DotnetRestore
<== Clean
<== NpmInstall
Public Interface IHasETN
Property ETN As Integer
End Interface
Public Class Class1
Implements IHasETN
Public Property ETN As Integer Implements IHasETN.ETN
' Get
module TreeBuilding
[<Struct>]
type Record = { RecordId: int; ParentId: int }
type Tree =
| Branch of int * Tree list
| Leaf of int
let recordId t =
@ScottHutchinson
ScottHutchinson / cloudSettings
Last active January 10, 2021 18:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-01-10T18:55:52.194Z","extensionVersion":"v3.4.3"}
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>28fd0857-fe6f-4355-bc45-e1f3f14d1f0e</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>DartTools</RootNamespace>
1>------ Rebuild All started: Project: UserInterface, Configuration: Release x86 ------
2>------ Rebuild All started: Project: DX Library, Configuration: Release Any CPU ------
3>------ Rebuild All started: Project: StronglyConnectedComponents, Configuration: Release Any CPU ------
2> C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\fsc.exe -o:obj\Release\DX_Library.dll --debug:pdbonly --noframework --define:TRACE --doc:bin\Release\DX_Library.XML --optimize+ -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.4.0.0\FSharp.Core.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\mscorlib.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Core.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Numerics.dll" -r:"C:\Program Files
@ScottHutchinson
ScottHutchinson / SplitCommaDelimitedLineWithQuotedValues.vb
Created October 4, 2018 18:01
SplitCommaDelimitedLineWithQuotedValues function
' hutch: 10/04/18. Added this function to enable an import file to contain a DX file path that includes commas.
Public Shared Function SplitCommaDelimitedLineWithQuotedValues(ByVal value As String, ByVal delimiter As Char) As String()
' Split using comma as the delimiter, but ignoring commas inside single quotes (')
Dim values = Regex.Split(value, ",(?!(?=[^']*'[^']*(?:'[^']*'[^']*)*$))")
' Trim spaces and single quotes from each item in values.
Dim ret = values.Select(Function(x) x.Trim(New Char() {" "c, "'"c})).ToArray()
Return ret
End Function
' Example call: Dim token As String() = SplitCommaDelimitedLineWithQuotedValues(line, ","c) 'token may start with space
@ScottHutchinson
ScottHutchinson / errors.txt
Created December 17, 2018 20:40
Programming Microsoft ASP.NET MVC, 3rd Edition errors
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
1>C:\Users\Scott\Source\Mvc5bis\Lib\BookSamples.Components\ActionResults\HttpNotFoundResult.cs(6,39,6,59): error CS0246: The type or namespace name 'HttpStatusCodeResult' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\Scott\Source\Mvc5bis\Lib\BookSamples.Components\
@ScottHutchinson
ScottHutchinson / install-vsix.ps1
Last active April 12, 2025 09:57
PowerShell scripts for batch installing Visual Studio extensions
# Based on http://nuts4.net/post/automated-download-and-installation-of-visual-studio-extensions-via-powershell
param([String] $PackageName)
$ErrorActionPreference = "Stop"
$baseProtocol = "https:"
$baseHostName = "marketplace.visualstudio.com"
$Uri = "$($baseProtocol)//$($baseHostName)/items?itemName=$($PackageName)"
@ScottHutchinson
ScottHutchinson / extensions.bat
Created June 19, 2019 22:16
Batch file for installing VS Code extensions
:: call "C:\Users\hutchinsons\AppData\Local\Programs\Microsoft VS Code\bin\code" --force --install-extension ajshort.include-autocomplete
call "C:\Users\hutchinsons\AppData\Local\Programs\Microsoft VS Code\bin\code" --force --install-extension amazonwebservices.aws-toolkit-vscode
call "C:\Users\hutchinsons\AppData\Local\Programs\Microsoft VS Code\bin\code" --force --install-extension austin.code-gnu-global
call "C:\Users\hutchinsons\AppData\Local\Programs\Microsoft VS Code\bin\code" --force --install-extension dbaeumer.vscode-eslint
call "C:\Users\hutchinsons\AppData\Local\Programs\Microsoft VS Code\bin\code" --force --install-extension eamodio.gitlens
call "C:\Users\hutchinsons\AppData\Local\Programs\Microsoft VS Code\bin\code" --force --install-extension ecmel.vscode-html-css
call "C:\Users\hutchinsons\AppData\Local\Programs\Microsoft VS Code\bin\code" --force --install-extension Flixs.vs-code-http-server-and-html-preview
call "C:\Users\hutchinsons\AppData\Local\Programs\Microsoft VS Code\bin\code"