This file contains 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
//DTE object of VS hosting the FSI which runs this | |
//See: https://stackoverflow.com/questions/3102472/f-c-fsx-script-files-and-project-references/3102579#3102579 | |
//and: https://blogs.msdn.microsoft.com/kirillosenkov/2011/08/10/how-to-get-dte-from-visual-studio-process-id/ | |
#r "EnvDTE" | |
#r "EnvDTE80" | |
#r "VSLangProj" | |
open System | |
open System.Runtime.InteropServices | |
open System.Runtime.InteropServices.ComTypes |
This file has been truncated, but you can view the full file.
This file contains 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
#load @"E:\profile\fsi\.\packagegrp\CE8A46E8AAAB2DAD2A75F9585A0E8F0563C98AEA859A445DC4BF25F4B0C33943\.paket\load\main.group.fsx" | |
open System | |
open System.IO | |
open TensorFlow | |
Environment.SetEnvironmentVariable("Path", | |
Environment.GetEnvironmentVariable("Path") + ";" + @"E:\profile\fsi\packagegrp\CE8A46E8AAAB2DAD2A75F9585A0E8F0563C98AEA859A445DC4BF25F4B0C33943\packages\TensorFlowSharp\runtimes\win7-x64\native") |
This file contains 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
open System | |
open System.Reflection | |
let rec matchTypeParameters (t1 : Type) (t2 : Type) = | |
if t1.IsGenericParameter then | |
Seq.singleton (t1,t2) | |
else | |
let ga1 = t1.GetGenericArguments() | |
let ga2 = t2.GetGenericArguments() | |
if ga1.Length <> ga2.Length then |
This file contains 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
open System | |
open System.Runtime.InteropServices | |
open System.Runtime.CompilerServices | |
type CallerInfo = | |
{ | |
Inherited : bool | |
MemberName : string | |
Path : string | |
LineNumber : int |
This file contains 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
#r "nuget:Qit,0.0.2-alpha2" | |
open System | |
open Qit.ProviderImplementation.ProvidedTypes | |
open System.Reflection | |
type CtorFml(tpdef : Type, genericMethodDefinition: ConstructorInfo, parameters: Type[]) = | |
inherit ConstructorInfo() | |
let gps = tpdef.GetGenericArguments() |
This file contains 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
#r "nuget:Avalonia.Desktop" | |
#r "nuget:Avalonia.FuncUI" | |
#r "nuget:Avalonia.Themes.Fluent" | |
#r "nuget:ScottPlot.Avalonia" | |
// ScottPlot.Avalonia exists, without global open Avalonia.* failes after ScottPlot is opened. | |
// This really only matters if you want to rerun this entire script without resetting | |
open System | |
open global.Avalonia |
OlderNewer