Skip to content

Instantly share code, notes, and snippets.

import datetime
import itertools
import random
from collections import defaultdict
import matplotlib
from scipy import spatial
from scipy.interpolate import interpolate
import matplotlib.pyplot as plt
@ghostbust555
ghostbust555 / Neural.DocumentRecognition.targets
Created March 7, 2018 18:41
nuget targets file for all
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)**">
<Visible>false</Visible>
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
@ghostbust555
ghostbust555 / Install-Python-Environment.ps1
Last active March 28, 2018 19:38
Pull down and create python environment
$outputDir = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("$PSScriptRoot/../python")
$zipOutput = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("$PSScriptRoot/../Framework/Neural.DocumentRecognition/pythonEnvironment.zip")
if(-not (test-path $outputDir) -or -not (test-path $zipOutput)){
if(-not (test-path "$PSScriptRoot/minicondaInstaller.exe")){
Invoke-WebRequest -Uri "https://repo.continuum.io/miniconda/Miniconda3-4.4.10-Windows-x86_64.exe" -OutFile "$PSScriptRoot/minicondaInstaller.exe"
}
& "$PSScriptRoot/minicondaInstaller.exe" /InstallationType=JustMe /RegisterPython=0 /NoRegistry=1 /S /D="$outputDir" | Out-Null