From 4803fe9b9094cb8ecbbf09f4658854494fc6d6eb Mon Sep 17 00:00:00 2001 From: Wyatt Miller Date: Sun, 16 Dec 2018 14:35:17 -0500 Subject: [PATCH] added files to my library --- .vs/DeskHubSharp/v15/.suo | Bin 233984 -> 233984 bytes DeskHubSharp.Models/Email.fs | 8 ++++---- DeskHubSharp.Models/Error.fs | 3 +++ DeskHubSharp.Models/Math.fs | 9 +++++++++ DeskHubSharp.Models/Opener.fs | 15 +++++++++++++++ 5 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 DeskHubSharp.Models/Error.fs create mode 100644 DeskHubSharp.Models/Math.fs create mode 100644 DeskHubSharp.Models/Opener.fs diff --git a/.vs/DeskHubSharp/v15/.suo b/.vs/DeskHubSharp/v15/.suo index a339b7b7f87824e0f166c83f0c33b9332f3b28f7..54a069bb7060cd0fec8c80abf5e30809f6dbbef5 100644 GIT binary patch delta 2785 zcmds34NO&K7(VZN&i&)+{ee4ZhIsL($Pm$tP*J;ziUk7Bk+oJplaZ+)qN15xl}%j4 zk9YE}<!-RrKhxT`GX(SxL0mras_xUDd5c64-TG%zMG9%b}q#Ca-weRkv)!77}oOTRcc zeZD#eR{*T_T$9V7R9&fj3nts8j@o&vk3*(9510G<3}rA!U1{uxYK>*8TxZEw^m!b* zB}!csd<4`4M?us6}xm;t;N?vU8&ioJU!MmLA9=X*WCLJ z9y^mUi!qy#!^mZ55x1!awoV9D#*LjYOtl{D_h!#D?%Tn;RufDjx? z$)Cc0a<9b$UGw09efr0_BL7`>AUHcIRRL1I!U2m^hw8A>Us9vZdD z#Z+315x)Llr0`mB2(Jz&0nDNeI*cboM6h{ zt^|$uQUSN9&Lm&=rLh>wH$tq4-3S42hv2Foir}=3Ev8pDgW;dmR!Lq3pZc?~;{JO* zk^M)A(bUlcbat)yG{lTuxfU$N9+dw$P7!>|Li-Tz@4Uhqv@&1pd zxj@!w-N7PqC+5qbrwsxfl%CaTymU&5!I0Ij$c9~EaxMyXWqrA*{Xz#IOe3vV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vmJ)&K(Q*s9;=w95lqXQi;-8H=KND#Z1BkIJM zDE_WQE4B-H>4o-{dAY@l5-pCRV*Bd;@vEk97LBiS?basI*x(dZuR6^ihHAF!4z2(S z?Zjd1`y5dtvXAd#H>ihj6UMRq_pnlYxgJ_jt>JT%S?GPN(gs^>^NUNCS?y67B^H~t zcukhwZYzq)vO0>QHc5~^i^4aEWBS?X3y$KRK(|J~D2k~PLv-0UygjPcO=2K9=7WJA QZ|2f#;-xtC5{Ga61Ayl{w*UYD diff --git a/DeskHubSharp.Models/Email.fs b/DeskHubSharp.Models/Email.fs index 0733936..589dc59 100644 --- a/DeskHubSharp.Models/Email.fs +++ b/DeskHubSharp.Models/Email.fs @@ -1,6 +1,6 @@ namespace DeskHubSharp.Models - type EmailModel(fromEmail: string, toEmail: string, password: string) = - member x.FromEmail = "wjmiller2016@gmail.com" - member x.ToEmail = "wjmiller2016@gmail.com" - member x.Password = "password" + type EmailModel() = + member this.FromEmail = "wjmiller2016@gmail.com" + member this.ToEmail = "wjmiller2016@gmail.com" + member this.Password = "password" diff --git a/DeskHubSharp.Models/Error.fs b/DeskHubSharp.Models/Error.fs new file mode 100644 index 0000000..19f1302 --- /dev/null +++ b/DeskHubSharp.Models/Error.fs @@ -0,0 +1,3 @@ +module Error + +// This file is to test out file IO and exceptions \ No newline at end of file diff --git a/DeskHubSharp.Models/Math.fs b/DeskHubSharp.Models/Math.fs new file mode 100644 index 0000000..a30b875 --- /dev/null +++ b/DeskHubSharp.Models/Math.fs @@ -0,0 +1,9 @@ +module Math + +let addOne x = x + 1 + +let square x = x * x + +let slash x = x / x + +let recursive x = 1 / x \ No newline at end of file diff --git a/DeskHubSharp.Models/Opener.fs b/DeskHubSharp.Models/Opener.fs new file mode 100644 index 0000000..863e5d4 --- /dev/null +++ b/DeskHubSharp.Models/Opener.fs @@ -0,0 +1,15 @@ +module Opener + +open System.IO +open System.Diagnostics + +let file = + try + use file = File.OpenRead "config.xml" + Some <| file.Read + with + :? FileNotFoundException as ex -> + printfn "%s was not found. Does it exist?" ex.FileName + None + _ -> printfn "Error loading file..." + reraise()