Skip to content

Instantly share code, notes, and snippets.

@ctaggart
ctaggart / aspnetmaster.txt
Created November 8, 2014 03:26
aspnetvnext & aspnetmaster 2014-11-07
https://www.myget.org/gallery/aspnetmaster
https://www.myget.org/F/aspnetmaster/api/v2
PM> Get-Package -ListAvailable -IncludePrerelease
Id Version Description/Release Notes
-- ------- -------------------------
CoreCLR 1.0.0-alpha4 Core CLR Runtime for all platforms
EntityFramework 7.0.0-alpha4 EntityFramework
EntityFramework.AzureTableS... 7.0.0-alpha4 EntityFramework.AzureTableStorage
GET http://s7:27413/octokit/octokit.net/d0fffd4f7ccc5b72b46b4774df4f2c53a04930ef/Octokit/Http/ProductHeaderValue.cs HTTP/1.1
Accept-Encoding: gzip
User-Agent: Microsoft-Symbol-Server/6.3.9600.17095
Host: s7:27413
Connection: Keep-Alive
Pragma: no-cache
@ctaggart
ctaggart / Program.fs
Created November 14, 2014 23:05
use SourceLink.SymbolCache 0.5
module Program
open System.IO
open SourceLink
open SourceLink.SymbolStore
let printPdbDocuments() =
let a = @"..\..\..\packages\SourceLink\lib\net45\SourceLink.pdb"
use s = File.OpenRead a
@ctaggart
ctaggart / attempts.fs
Last active August 29, 2015 14:11
F# generics and overloads, oh my!
// attempted to add generic contraints
member inline x.AddWithOption<'T when 'T: not struct and 'T : null and 'T :> Object> (nm, op:Option<'T>) = x.AddWithValue (nm, toObj op) // Reference Types
member inline x.AddWithOption<'T when 'T: struct and 'T : (new : unit -> 'T) and 'T :> ValueType> (nm, op:Option<'T>) = x.AddWithValue (nm, toNullable op) // Value Types
// attempted C# style extension
// http://blogs.msdn.com/b/fsharpteam/archive/2013/06/27/announcing-a-pre-release-of-f-3-1-and-the-visual-f-tools-in-visual-studio-2013.aspx
[<Runtime.CompilerServices.Extension>]
static member inline AddWithOption (x:SqlParameterCollection, nm, op:Option<_>) = x.AddWithValue (nm, toObj op) // Reference Types
@ctaggart
ctaggart / FSharp.Core.txt
Last active August 29, 2015 14:12
FSharp.Core Public Surface Area
namespace Microsoft.FSharp.Reflection
/// Represents a case of a discriminated union type
[<Sealed>]
[<Class>]
type UnionCaseInfo =
/// The type in which the case occurs.
member DeclaringType : Type
@ctaggart
ctaggart / 3.0.fsi
Last active August 29, 2015 14:12
FSharp.Core Surface Area
namespace Microsoft.FSharp.Reflection
/// Represents a case of a discriminated union type
[<Sealed>]
[<Class>]
type UnionCaseInfo =
/// The type in which the case occurs.
member DeclaringType : Type
@ctaggart
ctaggart / 3.0 to 3.1.fsi
Created December 27, 2014 02:13
FSharp.Core Surface Area Diff (what is new)
[<AutoOpen>]
module Microsoft.FSharp.Reflection.FSharpReflectionExtensions
/// Creates an instance of a record type.
val MakeRecord : recordType:Type * values:obj [] * ?allowAccessToPrivateRepresentation:bool -> obj
/// Reads all the fields from a record value.
val GetRecordFields : record:obj * ?allowAccessToPrivateRepresentation:bool -> obj []
/// Precompute a function for reading all the fields from a record. The fields are returned in the
@ctaggart
ctaggart / App.fs
Created January 16, 2015 06:28
Format TypeScript with F#
module App
// an F# wrapper for the TypeScript module
module tsast =
open EdgeJs
let format (ts:string): Async<string> =
let f =
Edge.Async
"""
@ctaggart
ctaggart / ideuser-delete-VS2015.reg
Created March 3, 2015 06:08
remove the current logged in user for Visual Studio 2015 http://stackoverflow.com/a/20891677/23059
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Microsoft\VSCommon\14.0\ClientServices\TokenStorage\VisualStudio\IdeUser]
@ctaggart
ctaggart / Octokit.checksums.txt
Last active August 29, 2015 14:18
Octokit.0.8.0 source index
SourceLink 0.5.0
b773bc7c4be33e92afc89e25f604ba60 c:\users\shiftkey\documents\github\octokit.net\octokit\authentication\anonymousauthenticator.cs
cb8e098e41803b9dd3e116d8c259358f c:\users\shiftkey\documents\github\octokit.net\octokit\authentication\authenticator.cs
0b441fdd64c2bf14b5a6def2e120af7b c:\users\shiftkey\documents\github\octokit.net\octokit\authentication\basicauthenticator.cs
23a8a22ca344b382b0087ba2bec1494b c:\users\shiftkey\documents\github\octokit.net\octokit\authentication\tokenauthenticator.cs
3616e3f3969ca3b74ffda9fad2ea1d76 c:\users\shiftkey\documents\github\octokit.net\octokit\clients\activitiesclient.cs
2e00214d2a8b2d7e1f133432973d5884 c:\users\shiftkey\documents\github\octokit.net\octokit\clients\apiclient.cs
bc2907b8c602f504c017ea21eafc1086 c:\users\shiftkey\documents\github\octokit.net\octokit\clients\apipagination.cs
8b0e269514d33c703d01672ffdc548eb c:\users\shiftkey\documents\github\octokit.net\octokit\clients\assigneesclient.cs
c54dec2b3a077af9c516ba9710d33226 c:\users\shiftkey\docu