Skip to content

Instantly share code, notes, and snippets.

Function Get-HttpFile {
param(
[Parameter(Mandatory = $true)]
[string]
$Uri,
[Parameter(Mandatory = $true)]
[string]
$OutFile,
BenchmarkDotNet=v0.11.5, OS=Windows 10.0.17134.706 (1803/April2018Update/Redstone4)
Intel Core i7-8850H CPU 2.60GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical cores
Frequency=2531252 Hz, Resolution=395.0614 ns, Timer=TSC
  [Host]     : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.3394.0
  DefaultJob : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.3394.0

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Linq.Expressions;
namespace generic_data_adapter
{
class DataReaderBuilder<T>
{
@joncloud
joncloud / Program.cs
Created May 16, 2018 01:50
EF access by schema
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp47
@joncloud
joncloud / Program.cs
Created May 16, 2018 01:48
Net Framework Installs
using Microsoft.Win32;
using System;
using System.Collections.Generic;
namespace ConsoleApp55
{
class Program
{
static void Main(string[] args)
{
using Meziantou.Framework.Win32;
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Management;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp53
@joncloud
joncloud / Benchmark_Net47_Windows.md
Last active April 15, 2018 21:43
DataSets Json VS XML
BenchmarkDotNet=v0.10.14, OS=Windows 10.0.16299.371 (1709/FallCreatorsUpdate/Redstone3)
Intel Core i5-4258U CPU 2.40GHz (Haswell), 1 CPU, 4 logical and 2 physical cores
Frequency=2343748 Hz, Resolution=426.6670 ns, Timer=TSC
  [Host]     : .NET Framework 4.7 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.2633.0
  DefaultJob : .NET Framework 4.7 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.2633.0

.NET Command Line Tools (2.1.101)
Product Information:
Version: 2.1.101
Commit SHA-1 hash: 6c22303bf0
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
@joncloud
joncloud / Benchmark.cs
Created March 25, 2018 15:42
LambdaDelegates
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using static Rlx.Functions;
namespace Rlx.BenchmarkTests
{
[MemoryDiagnoser]
public class MapBenchmark
{
[Benchmark]
@joncloud
joncloud / Benchmark.cs
Created March 25, 2018 15:39
LocalFunctions
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using static Rlx.Functions;
namespace Rlx.BenchmarkTests
{
[MemoryDiagnoser]
public class MapBenchmark
{
[Benchmark]