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 ICartManager GetCartManager(string accessToken, StoreSettings settings) | |
{ | |
var manager = _serviceAccount.Service.GetServiceAccountCartManager(settings); | |
return manager; | |
} |
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 Sir.Store; | |
namespace Sir.StringCompare | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var document1 = args[0]; |
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 void Tokenize(string value, List<(int Start, int Length)> tokens) | |
{ | |
// To find a word we wait for: | |
// 1. a char that is noice | |
// 2. a buffer larger than zero that is not a stopword | |
int length = 0, start = 0; | |
for (int i = 0; i < value.Length; i++) | |
{ | |
var ch = char.ToLowerInvariant(value[i]); |