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
use SpecRun | |
create nonclustered index idx_events on | |
[Events] (Id, EventSourceId, Sequence, TimeStamp) | |
include (Version, Name, Data) | |
create nonclustered index idx_eventsources on | |
[EventSources] (Id, Type, Version) | |
create nonclustered index idx_pipelinestate on |
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.Linq; | |
using TechTalk.JiraRestClient; | |
namespace JiraClientTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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.ComponentModel; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace TechTalk.SpecFlow.ObjectConversion | |
{ | |
public static class ObjectConverterExtensions | |
{ |
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.ComponentModel; | |
using System.Linq.Expressions; | |
namespace TechTalk.SpecFlow.ObjectVerification | |
{ | |
public static class ObjectVerifierExtensions | |
{ | |
/// <summary> |
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.Linq; | |
using System.Linq.Expressions; | |
namespace TechTalk.SpecFlow.ObjectVerification | |
{ | |
public static class CollectionVerifierExtensions | |
{ | |
/// <summary> |
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
[System.Diagnostics.DebuggerStepThrough] | |
public static string ReadPassword(char maskChar = '*') | |
{ | |
var password = string.Empty; | |
var categories = new[] { UnicodeCategory.Control, UnicodeCategory.Format, UnicodeCategory.OtherNotAssigned, UnicodeCategory.PrivateUse, UnicodeCategory.Surrogate }; | |
for (var key = Console.ReadKey(true); key.Key != ConsoleKey.Enter; key = Console.ReadKey(true)) | |
{ | |
if (!categories.Contains(CharUnicodeInfo.GetUnicodeCategory(key.KeyChar))) | |
{ | |
password = string.Concat(password, key.KeyChar); |
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
// based on: https://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=5 | |
// build as: gcc -static qemu-arch-cpu.c -O3 -s -o /usr/bin/qemu-arch-cpu | |
// use like: ln -s /usr/bin/qemu-arch-cpu /usr/bin/qemu-arm-arm1176 | |
#include <malloc.h> | |
#include <string.h> | |
#include <unistd.h> | |
char** parse_tuple(char* tuple) { | |
int pos = 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
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using System.Reflection; | |
using System.Threading; | |
namespace System.Data | |
{ | |
public static class SqlClientExtensions |
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.Linq.Expressions; | |
using System.Threading; | |
namespace Cancelable | |
{ | |
public struct CancelableActionCall<TS> | |
{ | |
private readonly TS _svc; | |
private readonly CancellationToken _token; |
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
namespace System.Collections.Generic | |
{ | |
using System.Linq; | |
public sealed class CircularBuffer<TItem> : IList<TItem>, ICollection<TItem>, IEnumerable<TItem> | |
{ | |
private int count = 0; | |
private int offset = 0; | |
private readonly TItem[] buffer; |
OlderNewer