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
const Promise = require('bluebird'); | |
const findAsync = (predicate, items) => { | |
if (items.length < 1) { | |
return Promise.resolve(undefined); | |
} | |
const [current, ...rest] = items; | |
return predicate(current) |
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
const Promise = require('bluebird'); | |
const reduceAsync = async (projection, initialValue, items) => { | |
let value = initialValue; | |
for (const item of items) { | |
value = await projection(value, item); | |
} | |
return value; | |
} |
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
function Read-Chunk { | |
param([System.IO.StreamReader] $streamReader, [int] $chunkSize) | |
$i = 0; | |
while (($i -lt $chunkSize -and ($line = $streamReader.ReadLine()))) { | |
$i++; | |
Write-Output $line | |
} | |
} |
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
<template> | |
<require from="./parent-element"></require> | |
<h1>${message}</h1> | |
<parent-element /> | |
</template> |
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
<template> | |
<require from="./parent-element"></require> | |
<h1>${message}</h1> | |
<parent-element /> | |
</template> |
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
<template> | |
<require from="./parent-element"></require> | |
<h1>${message}</h1> | |
<parent-element /> | |
</template> |
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
2017-02-25 23:43:33, Error DU DU::CDUSession::Search: Failed to set WU internal configuration property for targeted scans. hr = 0x80070057 | |
2017-02-25 23:59:14, Error [0x0803b6] MIG Can't retrieve group information for user NT SERVICE\SQLTELEMETRY. NetUserGetLocalGroups failed 0x000008AD | |
2017-02-25 23:59:14, Error [0x0803b6] MIG Can't retrieve group information for user NT SERVICE\MSSQLSERVER. NetUserGetLocalGroups failed 0x000008AD | |
2017-02-25 23:59:14, Error [0x0803b6] MIG Can't retrieve group information for user IIS APPPOOL\Classic .NET AppPool. NetUserGetLocalGroups failed 0x000008AD | |
2017-02-25 23:59:14, Error [0x0803b6] MIG Can't retrieve group information for user IIS APPPOOL\.NET v4.5. NetUserGetLocalGroups failed 0x000008AD | |
2017-02-25 23:59:14, Error [0x0803b6] MIG Can't retrieve group information for user IIS APPPOOL\DefaultAppPool. NetUserGetLocalGroups failed 0x000008AD | |
2017-02-25 23:59:14, Error [0x0803b6] MIG Can't retrieve group |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output cdata-section-elements="message stack-trace"/> | |
<xsl:template match="/"> | |
<xsl:apply-templates/> | |
</xsl:template> | |
<xsl:template match="assembly"> | |
<test-results> |
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 class DictionaryParameterSource : IParameterSource { | |
public DictionaryParameterSource(IDictionary<string, string> parameters) { | |
this.parameters = new Dictionary<string, string>(parameters); | |
} | |
public IDictionary<string, string> GetParameters() { | |
return this.parameters; | |
} | |
} |
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 class SqlAzureClientDriverWithParameterSizeWorkaround : SqlAzureClientDriver { | |
protected override void InitializeParameter(IDbDataParameter dbParam, string name, SqlType sqlType) { | |
base.InitializeParameter(dbParam, name, sqlType); | |
if (sqlType.DbType == DbType.StringFixedLength && sqlType.LengthDefined && sqlType.Length == 1) { | |
dbParam.Size = 1; | |
} | |
} | |
} |
NewerOlder