Skip to content

Instantly share code, notes, and snippets.

View danmoseley's full-sized avatar
:shipit:

Dan Moseley danmoseley

:shipit:
  • Microsoft
  • Jackson, WY
  • 01:24 (UTC -06:00)
View GitHub Profile
@danmoseley
danmoseley / errors.md
Last active January 11, 2024 08:22
Windows/Unix file IO errors
Unix code(s)
@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 / 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 / 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 / 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 / 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 / netfx.vb.ref.cs
Created July 23, 2018 17:24
M.VB ref from .NET Framework
namespace Microsoft.VisualBasic
{
public enum AppWinStyle : short
{
Hide = (short)0,
MaximizedFocus = (short)3,
MinimizedFocus = (short)2,
MinimizedNoFocus = (short)6,
NormalFocus = (short)1,
NormalNoFocus = (short)4,
Lines not containing 'class'
^(?:(?!class)[\s\S])*$
^((?!class)[\s\S])*$
^(?!.*class).*$
@danmoseley
danmoseley / vbdiff.diff
Created July 17, 2018 23:31
Diff of Microsoft.VisualBasic between .NET Framework and .NET Core
---C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll
+++C:\git\corefx\bin\AnyOS.AnyCPU.Debug\Microsoft.VisualBasic\netstandard\Microsoft.VisualBasic.dll
namespace Microsoft.VisualBasic {
- public enum AppWinStyle : short {
- Hide = (short)0,
- MaximizedFocus = (short)3,
- MinimizedFocus = (short)2,
- MinimizedNoFocus = (short)6,
- NormalFocus = (short)1,
- NormalNoFocus = (short)4,
@danmoseley
danmoseley / vbcsdiff.html
Last active May 31, 2018 23:43
members present in Microsoft.VisualBasic.dll/Microsoft.CSharp.dll in .NET Framework that are not in .NET Core
namespace Microsoft.VisualBasic {
public enum AppWinStyle : short {
Hide = (short)0,
MaximizedFocus = (short)3,
MinimizedFocus = (short)2,
MinimizedNoFocus = (short)6,
NormalFocus = (short)1,
NormalNoFocus = (short)4,
}
public enum AudioPlayMode {