Skip to content

Instantly share code, notes, and snippets.

View danmoseley's full-sized avatar
:shipit:

Dan Moseley danmoseley

:shipit:
  • Microsoft
  • Jackson, WY
  • 09:08 (UTC -06:00)
View GitHub Profile
@danmoseley
danmoseley / powercollections.txt
Last active July 30, 2018 17:32
Wintellect Power Collections types
T:Wintellect.PowerCollections.Algorithms
T:Wintellect.PowerCollections.Algorithms.ArrayRange`1
M:Wintellect.PowerCollections.Algorithms.ArrayRange`1.#ctor(`0[],System.Int32,System.Int32)
T:Wintellect.PowerCollections.Algorithms.ArrayWrapper`1
M:Wintellect.PowerCollections.Algorithms.ArrayWrapper`1.#ctor(`0[])
P:Wintellect.PowerCollections.Algorithms.ArrayWrapper`1.System#Collections#IList#IsFixedSize
M:Wintellect.PowerCollections.Algorithms.BinarySearch``1(System.Collections.Generic.IList{``0},``0,System.Collections.Generic.IComparer{``0},System.Int32@)
M:Wintellect.PowerCollections.Algorithms.BinarySearch``1(System.Collections.Generic.IList{``0},``0,System.Comparison{``0},System.Int32@)
@danmoseley
danmoseley / gist:73d62cbf5f94eb0e1c0f89a9ba34a208
Created November 4, 2018 00:30
DictionarySlim perf results on Q6600
Mean = 6.7743 s, StdErr = 0.0503 s (0.74%); N = 100, StdDev = 0.5025 s
Min = 5.9039 s, Q1 = 6.3304 s, Median = 6.6198 s, Q3 = 7.2020 s, Max = 7.9049 s
IQR = 0.8716 s, LowerFence = 5.0231 s, UpperFence = 8.5093 s
ConfidenceInterval = [6.6039 s; 6.9447 s] (CI 99.9%), Margin = 0.1704 s (2.52% of Mean)
Skewness = 0.6, Kurtosis = 2.17, MValue = 2.65
// ***** BenchmarkRunner: Finish *****
// * Export *
@danmoseley
danmoseley / gist:038c9a694e91431eb906ce348ea86789
Created December 20, 2018 22:14
solution generator for corefx
using System;
using System.IO;
using System.Xml.Linq;
using System.Linq;
namespace ConsoleApp20
{
class Program
{
static void Main()
@danmoseley
danmoseley / pcre2.16.h
Created December 27, 2018 05:26
pcre2 postprocessed 16 bit header
typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef signed char int_least8_t;
typedef short int_least16_t;
@danmoseley
danmoseley / dataview.md
Created February 5, 2019 21:02
Dataview Feb19

API List of c:\git\machinelearning\bin\AnyCPU.Debug\Microsoft.Data.DataView\netstandard2.0\Microsoft.Data.DataView.dll

Microsoft.Data.DataView

 namespace Microsoft.Data.DataView {
     public sealed class BoolType : PrimitiveType {
         public static BoolType Instance { get; }
@danmoseley
danmoseley / errors.md
Last active January 11, 2024 08:22
Windows/Unix file IO errors
Unix code(s)
@danmoseley
danmoseley / newoutput1
Last active May 29, 2019 00:09
Possible output format for various fatal .NET errors
c:\test>c:\test\1.exe so
Stack overflow.
c:\test>c:\test\1.exe ff
Process terminated. <reason>
at System.Environment.FailFast(System.String)
at _1.Program.X(System.String)
at _1.Program.Main(System.String[])
c:\test>c:\test\1.exe av
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at _1.Program.X(System.String)
c:\test>c:\test\1.exe so 
Stack overflow.
c:\test>c:\test\1.exe null 
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at _1.Program.X(String arg)
   at _1.Program.Main(String[] args)
#define CONTRACTS_FULL
using System;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
@danmoseley
danmoseley / updated
Created June 9, 2019 21:24
Updated SSL exception output
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> System.TypeInitializationException: The type initializer for 'SslMethods' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Ssl' threw an exception.
---> System.TypeInitializationException: The type initializer for 'SslInitializer' threw an exception.
---> Interop+Crypto+OpenSslCryptographicException: error:25070067:DSO support routines:DSO_load:could not load the shared library
at Interop.SslInitializer..cctor()
at Interop.Ssl..cctor()
at Interop.Ssl.SslV2_3Method()
at Interop.Ssl.SslMethods..cctor()