Skip to content

Instantly share code, notes, and snippets.

View Liversage's full-sized avatar

Martin Liversage Liversage

View GitHub Profile
@Liversage
Liversage / keybase.md
Created April 23, 2018 07:39
Proof of GitHub identity for Keybase

Keybase proof

I hereby claim:

  • I am liversage on github.
  • I am liversage (https://keybase.io/liversage) on keybase.
  • I have a public key ASAlqvHOmZSujBp7DKqZMLsfoQmrgki99AOfxwgWpcqXfAo

To claim this, I am signing this object:

@Liversage
Liversage / CosmosDBIssue.csproj
Created August 31, 2018 08:56
High request unit cost in Cosmos DB when querying on ID
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<LangVersion>latest</LangVersion>
</PropertyGroup>
@Liversage
Liversage / CosmosDBDebugIssue.csproj
Created August 31, 2018 11:09
Reading non-existent documents while debugging is very slow
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<LangVersion>latest</LangVersion>
</PropertyGroup>
@Liversage
Liversage / .editorconfig
Last active February 28, 2024 07:27
Visual Studio 2022 C# baseline .editorconfig
root = true
[*]
max_line_length = 160
# https://editorconfig.org/#supported-properties
indent_style = space
indent_size = 4
@Liversage
Liversage / StringExtensions.cs
Created April 19, 2021 14:36
Camel case string extension
internal static class StringExtensions
{
[return: NotNullIfNotNull("string")]
public static string? ToCamelCase(this string? @string)
{
if (@string is null)
return null;
// "abcDef" => "abcDef"
// "AbcDef" => "abcDef"