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
Feature: Referrals Count | |
As an operational manager | |
I want to see counts of referrals | |
So I can plan capacity and monitor the number of patients in the system | |
Scenario: Simple Referral | |
Given the following referrals: | |
| Patient | Referral Date | | |
| Jane Smith | 2013-01-01 | | |
| Robert Jones | 2013-01-02 | |
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
open System | |
open System.Reflection | |
open System.Collections.Generic | |
open System.Data | |
open System.Linq | |
open System.Linq.Expressions | |
type private accessor<'T> = { Index: int; Name: string; Getter: 'T -> obj } | |
/// IEnumerable to IDataReader wrapper class |
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.Threading; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
// Harriet emulator... | |
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
declare @start int = 0; | |
declare @end int = 1000; | |
with numberSequence | |
as ( | |
select @start as nextValue | |
union all | |
select nextValue + 1 | |
from numberSequence | |
where nextValue + 1 < @end |
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
alter view dbo.DimDate | |
as | |
with DateSeq(DateValue) as ( | |
select cast('2015-01-01' as date) as DateValue | |
union all | |
select dateadd(day, 1, DateValue) as DateValue | |
from DateSeq | |
where year(DateValue) < year(getdate()) + 2 | |
) | |
select *, |
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
Install-Module -Name PowerHTML -Scope CurrentUser | |
Import-Module PowerHTML | |
$resultPages = @( | |
'alderney-bourne-valley-results.aspx' | |
'bearwood-merley-results.aspx' | |
'boscombe-east-pokesdown.aspx' | |
'boscombe-west-results.aspx' | |
'bournemouth-central-results.aspx' | |
'broadstone-results.aspx' |
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
// Copyright 2013 James Snape | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
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
Import-Module posh-git | |
Set-StrictMode -Off | |
# Get Account for the logged on user | |
function Get-WhoIAm { | |
$windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent() | |
# Create a new object | |
Write-Output (New-Object -TypeName PSCustomObject -Property ([ordered] @{ | |
Account = $windowsIdentity.Name |
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
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, | |
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED | |
// WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. | |
namespace Foo | |
{ | |
using System; | |
using System.Linq; | |
using System.Linq.Expressions; |
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.Threading.Tasks; | |
/// <summary> | |
/// IWorkerLeasePolicy interface definition. | |
/// </summary> | |
public interface IWorkerPermitPolicy | |
{ | |
/// <summary>Initializes the specified maximum workers.</summary> | |
/// <param name="maxWorkers">The maximum number workers.</param> | |
/// <param name="sequenceSizeBytes">The sequence size in bytes.</param> |
OlderNewer