This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using Newtonsoft.Json.Serialization; | |
namespace Asseco.JsonUtils | |
{ | |
// Adapted from SnakeCaseNamingStrategy from Newtonsoft.Json library | |
public class KebabCaseNamingStrategy : NamingStrategy | |
{ | |
const char HYPHEN = '-'; | |
const char UNDERSCORE = '_'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json.Serialization; | |
namespace Asseco.JsonUtils | |
{ | |
public class KebabCaseResolver : DefaultContractResolver | |
{ | |
private Regex regex = new Regex("(?<!^)((?<=[a-zA-Z0-9])[A-Z][a-z])|((?<=[a-z])[A-Z])", RegexOptions.Compiled); | |
protected override string ResolvePropertyName(string propertyName) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Asseco.Rest.Models | |
{ | |
[DataContract] | |
public partial class EventRecord | |
{ | |
[JsonExtensionData] | |
internal Dictionary<string, object> udf; | |
public EventRecord(string EventKind = default(string)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
using System.IO; | |
using Newtonsoft.Json; | |
using NodaTime; | |
using NodaTime.Serialization.JsonNet; | |
namespace FormattingUtils | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.DirectoryServices.AccountManagement; | |
using System.Linq; | |
using System.Security.Claims; | |
using System.Threading.Tasks; | |
using Thinktecture.IdentityServer.Core; | |
using Thinktecture.IdentityServer.Core.Models; | |
using Thinktecture.IdentityServer.Core.Services; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: rgba(30,30,30,1); | |
color: rgba(212,212,212,1); | |
font-size: 14px; | |
white-space: pre !important; | |
font-family: "Roboto Mono", "Source Code Pro", Menlo, "Ubuntu Mono", Monaco, Consolas, Courier, monospace; | |
padding: 30px 30px 20px; | |
} | |
.property { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Text; | |
namespace Asseco.MiscUtils | |
{ | |
/* | |
* Based on Firebase ids but modified for shorter ids and base62 alphabet | |
*/ |
NewerOlder