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 ColumnTypes | |
{ | |
public const int STRING = 12; | |
public const int BOOL = -7; | |
public const int TIMESTAMP = 93; | |
} |
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.Security.Claims; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
using Moq; | |
namespace Infrastructure.Testing.Builders | |
{ | |
public class BuilderResult : HttpContextBuilderResult | |
{ |
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
generateSortFn(props) { | |
return function (a, b) { | |
for (var i = 0; i < props.length; i++) { | |
var prop = props[i]; | |
var name = prop.name; | |
var reverse = prop.reverse; | |
if (a[name] < b[name]) | |
return reverse ? 1 : -1; | |
if (a[name] > b[name]) | |
return reverse ? -1 : 1; |
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
//taken from https://github.com/tomsmeding/circular-buffer/blob/master/index.js and modified | |
//new features: | |
//find() | |
//getKeys() | |
//getValues() | |
//Persistant Buffer new features | |
//find() - finds a value by key | |
//getKeys() - gets only the keys available | |
//getValues() - gets the values | |
//load() - loads a buffer for use (useful if coming from server or localstorage) |
NewerOlder