import * as Fingerprint2 from 'fingerprintjs2'
function _getFingerprint () {
return new Promise((resolve, reject) => {
async function getHash () {
const options = {
excludes: {
This file contains 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
/// <summary> | |
/// Get https://localhost:5001/home/StringEqualsTest | |
/// </summary> | |
public async Task<IActionResult> StringEqualsTest() | |
{ | |
(string post1, bool isCacheHit1) = await GetValuesLower("post1"); | |
(string post2, bool isCacheHit2) = await GetValuesLower("post2"); | |
(string post1_1, bool isCacheHit1_1) = await GetValuesLower("post1"); |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<Project> | |
<PropertyGroup> | |
<Description>An implementation of StyleCop rules using the .NET Compiler Platform</Description> | |
<Product>StyleCop.Analyzers</Product> | |
<Company>Tunnel Vision Laboratories, LLC</Company> | |
<Copyright>Copyright © Tunnel Vision Laboratories, LLC 2015</Copyright> | |
<NeutralLanguage>en-US</NeutralLanguage> |
This file contains 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
version: '3.4' | |
services: | |
db: | |
image: postgres:13.0 | |
container_name: postgresql-13 | |
restart: always | |
environment: | |
POSTGRES_USER: promo | |
POSTGRES_PASSWORD: Str0ngPassword! |
This file contains 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.RegularExpressions; | |
namespace Utils.Helpers | |
{ | |
public class EmailValidRegex : Regex | |
{ | |
private const string Pattern = | |
@"^(?("")("".+?(?<!\\)""@)|(([0-9a-z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-z])@))" + | |
@"(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-z][-0-9a-z]*[0-9a-z]*\.)+[a-z0-9][\-a-z0-9]{0,22}[a-z0-9]))$"; |
This file contains 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.Diagnostics; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace MultiThread_25 | |
{ | |
class Program |
This file contains 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; | |
using Newtonsoft.Json.Serialization; | |
using Utils.Helpers; | |
namespace YourNamespace | |
{ | |
public static class JsonSerializationExtensions | |
{ | |
private static readonly SnakeCaseNamingStrategy _snakeCaseNamingStrategy | |
= new SnakeCaseNamingStrategy(); |
This file contains 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.Json; | |
using Utils.Serialization; | |
namespace YourNamespace | |
{ | |
public class SnakeCaseNamingPolicy : JsonNamingPolicy | |
{ | |
public override string ConvertName(string name) => name.ToSnakeCase(); | |
} | |
} |
This file contains 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
public class Startup | |
{ | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
// ... | |
services | |
.AddMvc() | |
.AddJsonOptions(x => | |
{ | |
x.JsonSerializerOptions.PropertyNamingPolicy = new SnakeCaseNamingPolicy(); |
OlderNewer