Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mihasic on github.

  • I am mihasic (https://keybase.io/mihasic) on keybase.

  • I have a public key ASB9vqB8KRaCSe7bgThqdW7AHMpjAOtX9GeVyBi10gaMeAo

@mihasic
mihasic / run-csscript.ps1
Created May 3, 2018 14:11
PowerShell cs script
param([string]$scriptPath)
$packages = Join-Path $PSScriptRoot ".tools"
$allLibPath = Join-Path $packages "lib\netstandard*\*.dll"
$libPath = Join-Path $packages "lib\Microsoft.CodeAnalysis.CSharp.Scripting.dll"
$librariesToLoad = @(
'System.Collections.Immutable/1.3.1',
'System.Reflection.Metadata/1.4.1',
'Microsoft.CodeAnalysis.Analyzers',
@mihasic
mihasic / Main.cs
Last active January 26, 2018 10:11
namespace await_benchmark
{
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
public class Program
@mihasic
mihasic / Program.cs
Last active August 29, 2015 14:07
RavenDB Embedded OutOfMemoryException
public class CreateResourceEvent
{
public string Key { get; set; }
public string Component { get; set; }
public string Culture { get; set; }
public string Value { get; set; }
public long Version { get; set; }
}
public class ComponentCultureStringResourcesProjection