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
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
// 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
<!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> |
OlderNewer