This file contains hidden or 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 allows an exact search to be used on an indexed | |
const scotNamedCharity = await oscrCollection.find({ | |
$text: { $search: `\"${removeStopWords(fund.funderName)}\"` } | |
}).toArray(); |
This file contains hidden or 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 { compare } from './array-functions'; | |
describe('array-functions', () => { | |
it('should sort and array', () => { | |
const unsortedArray = [ | |
{ order: 0, name: 'item 1' }, | |
{ order: 2, name: 'item 3' }, | |
{ order: 1, name: 'item 2' }, | |
]; | |
const resultsArray = unsortedArray.sort((a, b) => |
This file contains hidden or 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
steps: | |
- task: ExtractFiles@1 | |
displayName: 'Extract files ' | |
inputs: | |
archiveFilePatterns: '**/$(Build.BuildId).zip' | |
destinationFolder: '$(agent.builddirectory)' | |
overwriteExistingFiles: true |
This file contains hidden or 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 React, { useState } from 'react'; | |
// eslint-disable-next-line no-unused-vars | |
import { | |
Box, Button, Collapsible, Grommet, Heading, Layer, ResponsiveContext, | |
} from 'grommet'; | |
import PropTypes from 'prop-types'; | |
import { FormClose, Notification } from 'grommet-icons'; | |
const theme = { | |
global: { |
This file contains hidden or 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
var processingPolicy = Policy | |
.Handle<SageLockingException>() | |
.Or<SageProductException>() | |
.WaitAndRetry(delay, onRetry: (exception, timeSpan, context) => | |
{ | |
HandleException(result, orderToProcess, exception); | |
}); | |
var orderResults = processingPolicy.Execute(() => sageOrderHandler.ProcessNewOrder(sageOrder)); |
This file contains hidden or 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: | |
- master | |
- develop | |
- feature/* | |
pool: | |
vmImage: 'windows-2019' | |
variables: | |
configuration: 'Release' |
This file contains hidden or 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: | |
- master | |
- develop | |
- feature/* | |
pool: | |
vmImage: 'windows-2019' | |
variables: | |
configuration: 'Release' |
This file contains hidden or 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
/* | |
Object Sizes | |
Modified from http://stackoverflow.com/questions/15896564/get-table-and-index-storage-size-in-sql-server | |
*/ | |
SELECT | |
@@SERVERNAME as InstanceName | |
, DB_NAME() as DatabaseName | |
, ISNULL(s.name+'.'+t.NAME, '**TOTAL**') AS TableName |
This file contains hidden or 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
"Serilog": { | |
"MinimumLevel": { | |
"Default": "Debug", | |
"Override": { | |
"System": "Information", | |
"Microsoft": "Warning", | |
"Hangfire": "Debug" | |
} | |
}, | |
"WriteTo": [ |
This file contains hidden or 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 React, { useEffect } from 'react'; | |
import { Link } from "@reach/router"; | |
import { db } from "../_core/firebase"; | |
const HomePage = () => { | |
const init = async () => { | |
await db.collection('customers') | |
.onSnapshot(function (doc) { | |
let count = 0; |
NewerOlder