I hereby claim:
- I am joaopgrassi on github.
- I am joaopgrassi (https://keybase.io/joaopgrassi) on keybase.
- I have a public key ASAIS_44lltPJNobFcHIm63uCIpdP1WIUHz9uOnMPLQDTAo
To claim this, I am signing this object:
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
using (var store = WireupEventStore()) | |
{ | |
// do some stuff | |
} | |
} |
<key name="Colors" modified="2019-09-20 22:17:06" build="190526"> | |
<value name="Count" type="long" data="1"/> | |
<key name="Palette3" modified="2019-09-20 22:12:13" build="190526"> | |
<value name="Name" type="string" data="Oceans16 Dark"/> | |
<value name="ExtendColors" type="hex" data="00"/> | |
<value name="ExtendColorIdx" type="hex" data="10"/> | |
<value name="TextColorIdx" type="hex" data="10"/> | |
<value name="BackColorIdx" type="hex" data="10"/> | |
<value name="PopTextColorIdx" type="hex" data="10"/> | |
<value name="PopBackColorIdx" type="hex" data="10"/> |
private static (string publicKeyPem, SigningCredentials signingCredentials) GenerateRamdomRsaKeyPair() | |
{ | |
SigningCredentials signingCredentials = null; | |
string publicKeyPem; | |
using (RSA rsa = RSA.Create()) | |
{ | |
rsa.KeySize = 4096; | |
var rsaParams = rsa.ExportParameters(false); |
[alias] | |
co = checkout | |
cob = checkout -b | |
cm = !git add -A && git commit -m | |
b = branch | |
pu = push -u origin HEAD | |
st = status | |
[merge] | |
tool = p4merge | |
[mergetool "p4merge"] |
I hereby claim:
To claim this, I am signing this object:
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http; | |
namespace WebApplication2.Controllers | |
{ | |
[Route("api/entities")] | |
public class ExpandableController : ApiController | |
{ | |
[HttpGet] |
public class FlagsEnumToStringArrayJsonConverter<T> : JsonConverter | |
where T: struct | |
{ | |
public override bool CanConvert(Type objectType) | |
{ | |
return objectType.IsEnum && objectType.GetCustomAttributes(typeof(FlagsAttribute), false).Length > 0; | |
} | |
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) | |
{ |
public class FlagsEnumToStringArrayJsonConverter<T> : JsonConverter | |
where T: struct | |
{ | |
public override bool CanConvert(Type objectType) | |
{ | |
return objectType.IsEnum && objectType.GetCustomAttributes(typeof(FlagsAttribute), false).Length > 0; | |
} | |
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) | |
{ |
param ( | |
[Parameter(Mandatory = $true)] | |
[string] | |
$compareConfigFile | |
) | |
# Gladly copied from: https://info.sapien.com/index.php/scripting/scripting-how-tos/how-to-find-installation-directory | |
function Get-InstallPath | |
{ | |
[CmdletBinding()] |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("List of Marvel universes where some famous super heroes appear"); | |
var universes = new[] | |
{ | |
new Universe("Earth-616", "Main Continuity", new[] | |
{ |