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> | |
/// A paged collection. | |
/// </summary> | |
/// <typeparam name="T">The type of the items in the list.</typeparam> | |
/// <remarks> | |
/// When this collection is created, <see cref="IQueryable"/> Skip and Take is | |
/// calculated and called on the source list. Also, if total count | |
/// is not specified, <see cref="IQueryable"/> Count is called. | |
/// </remarks> | |
public class PagedList<T> : List<T> |
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 readonly struct HashCode | |
{ | |
private readonly int _value; | |
private HashCode(int value) => _value = value; | |
public static HashCode Seed { get; } = new HashCode(17); | |
public HashCode Combine<T>(T obj) | |
{ |
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> | |
/// Provides an abstraction for hashing passwords. | |
/// </summary> | |
public interface IPasswordHasher | |
{ | |
/// <summary> | |
/// Returns a hashed representation of the supplied <paramref name="password"/> for the specified <paramref name="user"/>. | |
/// </summary> | |
/// <param name="password">The password to hash.</param> | |
/// <returns>A hashed representation of the supplied <paramref name="password"/> for the specified <paramref name="user"/>.</returns> |
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
mode: ContinuousDelivery | |
next-version: 1.0.0 | |
branches: | |
main: | |
tag: '' | |
develop: | |
tag: beta | |
feature: | |
tag: alpha | |
pull-request: |
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
DECLARE @tableName NVARCHAR(256) | |
DECLARE @tableSchema NVARCHAR(100) | |
DECLARE @columnName NVARCHAR(256) | |
SET @tableName = '%CaseManager%' | |
SET @tableSchema = 'dbo' | |
SET @columnName = '%%' | |
SELECT * | |
FROM INFORMATION_SCHEMA.Columns |
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
# EditorConfig is awesome: https://EditorConfig.org | |
root = true | |
# All Files | |
[*] | |
charset = utf-8 | |
indent_style = space | |
indent_size = 4 | |
insert_final_newline = true |
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
CREATE PROCEDURE [dbo].[ClientHierarchy] | |
@clientId UNIQUEIDENTIFIER | |
AS | |
DECLARE @root UNIQUEIDENTIFIER; | |
-- step 1, find hightest node | |
WITH ParentCTE (Id, ParentClientId) AS | |
( |
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 static class AssemblyMetadata | |
{ | |
private static readonly Lazy<string> _fileVersion = new(() => | |
{ | |
var assembly = typeof(AssemblyMetadata).Assembly; | |
var attribute = assembly.GetCustomAttribute<AssemblyFileVersionAttribute>(); | |
return attribute?.Version; | |
}); | |
private static readonly Lazy<string> _assemblyVersion = new(() => |
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
trigger: | |
- main | |
- develop | |
- releases/* | |
variables: | |
major: 1 | |
minor: 0 | |
name: $(major).$(minor).$(Rev:r) |
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
apk add --no-cache python3 py3-pip | |
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | |
chmod +x speedtest-cli | |
python3 speedtest-cli |