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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Podcast</title> | |
</head> | |
<script src="https://cdn.tailwindcss.com"></script> |
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
// Reference: https://gist.github.com/davalapar/d0a5ba7cce4bc599f54800da22926da2 | |
export function downloadFile(data, filename, mime) { | |
// It is necessary to create a new blob object with mime-type explicitly set | |
// otherwise only Chrome works like it should | |
const blob = new Blob([data], {type: mime || 'application/octet-stream'}); | |
if (typeof window.navigator.msSaveBlob !== 'undefined') { | |
// IE doesn't allow using a blob object directly as link href. | |
// Workaround for "HTML7007: One or more blob URLs were | |
// revoked by closing the blob for which they were created. |
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 t = Task.Run(async () => | |
{ | |
_ = await new BrowserFetcher().DownloadAsync("848005"); | |
var url = "file:///C:/KrishnaMohan/Learning/tailwind/tailwind-npm/banner/banner.html"; | |
var outputFile = ".\\somepage02.png"; | |
var browser = await Puppeteer.LaunchAsync(new LaunchOptions | |
{ | |
Headless = true, | |
DefaultViewport = | |
{ |
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
$count = 0 | |
do { | |
$count = $count + 1 | |
Write-Host "Testing: "+$count | |
$result = dotnet test .\Sample.csproj --filter "FullyQualifiedName=Test_Namespace.Test_Name" --nologo --no-build | |
} while(($result.ExitCode -ne 0) -and ($count -lt 50)) |
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
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$goodCommit = $( Read-Host "Good commit hash, please" ), | |
[Parameter(Mandatory=$true)] | |
[string]$badCommit = $( Read-Host "Bad commit hash, please" ), | |
[Parameter(Mandatory=$true)] | |
[string]$testProjectPath = $( Read-Host "Test project path, please" ) | |
) | |
Write-Host $goodCommit $badCommit $testProjectPath | |
try |
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 video = document.createElement("video"); | |
var canvasElement = document.getElementById("canvas"); | |
var canvas = canvasElement.getContext("2d"); | |
var loadingMessage = document.getElementById("loadingMessage"); | |
var outputContainer = document.getElementById("output"); | |
var outputMessage = document.getElementById("outputMessage"); | |
var outputData = document.getElementById("outputData"); | |
function drawLine(begin, end, color) { | |
canvas.beginPath(); |
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
param( | |
[Parameter(Mandatory=$true)] | |
[string]$testProjectPath, | |
[Parameter(Mandatory=$true)] | |
[string]$testSettingsPath, | |
[Parameter(Mandatory=$true)] | |
[string]$testResultsFolder | |
) | |
<# |
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
dotnet test <Path to .csproj file> --settings:<Path to .runsettings file> |
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
dotnet <UserProfile>\.nuget\packages\reportgenerator\<version>\tools\netcoreapp2.1\ReportGenerator.dll "-reports:<Coveragexml file path>" "-targetdir:<path to coverage report>" | |
<# | |
Eg: dotnet C:\Users\krishnamohan\.nuget\packages\reportgenerator\4.1.10\tools\netcoreapp2.1\ReportGenerator.dll "-reports:d:\MyTestOutput.coveragexml" "-targetdir:d:\coveragereport" | |
#> |
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
<UserProfile>\.nuget\packages\microsoft.codecoverage\<version>\build\netstandard1.0\CodeCoverage\CodeCoverage.exe analyze /output:<xml file name with Path>.coveragexml <path to coverage file> | |
# Eg: C:\Users\krishnamohan\.nuget\packages\microsoft.codecoverage\15.9.0\build\netstandard1.0\CodeCoverage\CodeCoverage.exe analyze /output:d:\MyTestOutput.coveragexml d:\SomeName.coverage |
NewerOlder